Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-16-2015, 04:56 AM
|
#1
|
Member
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 952
Rep:
|
How to check whether Im using 32 or 64 bit VGA driver ?
How can I check whether I use 32 or 64 bit VGA driver under my system ?
Im using Xubuntu at the moment but I guess there is universal command to find out this detail in any distro ?
Last edited by czezz; 11-16-2015 at 04:57 AM.
|
|
|
11-16-2015, 05:41 AM
|
#2
|
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,200
|
You can look, but why?
The two parts to this are Xorg (xWindows) and the kernel modules. If the kernel is 64-bit and Xorg is (as it normally should be) the same bit width as the kernel, then your video card and display drivers will all be the same bit-width. I presume you have a 64-bit kernel and system. Unless you manually install 32-bit software, drivers, libraries, or applications (which you would notice having done) you should have all 64-bit.
You can list up the applied packages on your system and check, the bit width or target CPU family is normally part of the package name. (i386/i686 is 32-bit, *64 would be 64-bit)
Why does this question even come up?
|
|
|
11-16-2015, 06:53 AM
|
#3
|
Member
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 952
Original Poster
Rep:
|
Hi thanks for reply and this question at the end.
The reason why I ask is that I want to run pipelight on my home box (Xubuntu 14.04.3 LTS, x64).
I have easily installed pipelight on number of other PCs but at my home box it just does not work. It complains about missing Silverlight when I want to watch horizon.tv
I have found this article from Eric and his comment about 32 and 64 bit OS.
http://alien.slackbook.org/blog/pipe...inux-browsers/
Quote:
Note that Wine is a 32-bit product (and the pre-compiled pipelight pluginloader comes as 32-bit binary only), so if you are running 64-bit Slackware you will have to switch it to a multilib system first.
|
My Ubuntu is 64 bit. So I though that maybe VGA driver version is a problem.
|
|
|
11-17-2015, 05:27 AM
|
#4
|
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,200
|
64 bit system, normally IS
your problem is not the drivers, the driver is 64-bit and that is just fine.
The problem is that the 32-bit package you want to run has dependencies. These are libraries that must be installed on the system, because it loads from them at runtime. Worse, those libraries MAY BE INSTALLED, but at the 64-bit version appropriate for your system, and this software will IGNORE them because it is looking for the 32-bit version ONLY.
The solution is referred to in that quote: install the 32-bit libraries. IT does not hurt your 64-bit system to have both installed, and the 32-bit package will then find what it needs and run.
I have, by the way, made some packages run WITHOUT the 32-bit libraries by linking the 64-bit libraries (or folder) into the 32-bit librariy locations. This kind of thing is a hack, and I cannot recommend it. While it may work, it may also result in the 32-bit runtime receiving signals in bit-width they cannot handle, causing them to crash unexpectedly. Finding and installing the correct 32-bit libs is worth the effort.
|
|
|
11-17-2015, 05:36 AM
|
#5
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,345
|
|
|
|
11-18-2015, 04:00 AM
|
#6
|
Member
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 952
Original Poster
Rep:
|
Hmmm... but even though, the system I am writing from now is also 64 bits.
I have installed Pipelight here using this same steps as on my home box and here it just works.
Im sure I did not install any additional 32 bits libs. Just executed installation steps through apt-get.
How is that possible ?
|
|
|
11-18-2015, 04:08 AM
|
#7
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,345
|
probably it depends on multiarch support (if it was enabled or disabled). Or probably you installed something differently before....
|
|
|
11-18-2015, 12:17 PM
|
#8
|
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,200
|
Agreement with PAN64
That may have worked because the 32-bit libraries were ALREADY installed.
There are, in different distributions (even different install process within a distribution) settings for compatibility options that CAN pull in the extra libs.
I have encountered them a couple of times. Not often, because only about 6% of what I do involves desktops or desktop applications where this is more likely to arise. I work server space, where anything that is not 64-bit SHOULD be. ;-)
For a common laptop, workstation, or home server the odds are higher than you would need both 32 and 64 bit libs.
I would not dive deep into finding out, just count that one lucky, this one solved, and value the lesson. I will.
Best of luck!
|
|
|
11-26-2015, 06:32 AM
|
#9
|
Member
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 952
Original Poster
Rep:
|
What I see from the following output on my system it supports both arch:
Code:
# dpkg --print-architecture
amd64
# dpkg --print-foreign-architectures
i386
Not really sure now could that be a reason why pipelight doesnt work there 
|
|
|
11-26-2015, 06:36 AM
|
#10
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,345
|
that could not be the reason. It only means the default is amd64 and i386 supported too.
but it still does not mean all the required libs are installed. you can use the command ldd <file> to check if all the required libs are really available.
|
|
|
11-27-2015, 08:51 AM
|
#11
|
Member
Registered: Oct 2014
Location: U.S.A.
Distribution: mixed, mostly debian slackare today
Posts: 207
Rep: 
|
$ cat /proc/cpuinfo
but that will not say "how processor is set up by kernel code"
you want to know
#1 am i running true64 ? (or in 32 with 64 extensions?)
#2 if i am, then all software must be tru64, if not, then NO software can be tru64
to know that you'll have to see /usr/src/linux/.config (used to make your kernel) - but you may not
you can look at (or /boot/config if provided), but perhaps you can
$ vi `locate System.map`
# vi /boot/System.map
this shows you modules that are compiled into kernel
$ ls -R /lib/modules
and look for evidence (modules) that are only made if tru64 was chosen
------------------
#3 NOW... if your on the web (i know you are!) you should just check ?ubuntu's easy online package description of the kernel package. it will tell you.
#4 when you "get ubuntu" your asked if you want 32 or 64 base. your (likely) told to "choose a kernel" after choosing base to install, and the default kernel should match the default architecture of the base chosen
now note the kernel support for your video driver must support 32 OR 64 and your stuck with what it does  i'll pretend i didn't say that!
-------------------
FINALLY: as others above were saying, you look at your XFree86 or Xorg configuration to find your modules directory (the module loaded for your video card)
find where your video driver is located
... install -c .libs/vesa_drv.so /usr/X11R7.6/lib/xorg/modules/drivers/vesa_drv.so
now this will tell you quite plainly what you got (for vesa driver only):
# make sure you dpkg -i xf86-vesa video driver ok?
# objdump -a -x `locate vesa_drv.so` | less -S
$ objdump -a -x /usr/X11R7.6/lib/xorg/modules/drivers/vesa_drv.so
/usr/X11R7.6/lib/xorg/modules/drivers/vesa_drv.so: file format elf32-i386
/usr/X11R7.6/lib/xorg/modules/drivers/vesa_drv.so
architecture: i386, flags 0x00000150:
HAS_SYMS, DYNAMIC, D_PAGED
start address 0x000018a0
Program Header:
</snip>
Dynamic Section:
NEEDED libc.so.6
SONAME vesa_drv.so
</snip>
############
file format elf32-i386
i forgot to say: go online and check the package description for the video driver .deb package: it may say which, but may not
Last edited by debguy; 11-27-2015 at 09:01 AM.
|
|
|
11-27-2015, 09:00 AM
|
#12
|
Member
Registered: Oct 2014
Location: U.S.A.
Distribution: mixed, mostly debian slackare today
Posts: 207
Rep: 
|
Quote:
Originally Posted by pan64
that could not be the reason. It only means the default is amd64 and i386 supported too.
but it still does not mean all the required libs are installed. you can use the command ldd <file> to check if all the required libs are really available.
|
ABSOLUTELY INCORRECT and insufficient, please do not mark things as solved EVER unless you CAN PROVE IT in court
dpkg --print-architecture(s) does NOT say which driver is installed (let alone configured in /etc/X11/xorg.conf) NOR does it say the architecture of the driver
the person did not ask the "currently selected architecture being used" of the installed debian base (there may be more than one) ... which is a good question and perhaps should have been asked but WASNT
the person asked "is there a way to know if a video driver binary is 32bit mode or 64bit (apparently suspicious if it is a 32bit driver being made to run in 64bit mode - which is possible and would cause issues and have poorer performace. it could happen by bug or glitch, it is infact possible, and can be checked)
|
|
|
11-27-2015, 09:54 AM
|
#13
|
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,200
|
32 vs 64 vs mixed.
debguy: Please do not give the OP instructions on how he should treat his own thread. We are not moderators, and the OP is within his rights. If he feels his problem is solved, that is his call. Nothing here should be taken to court.
I also disagree with some of your statements. Some have value, but a few are technically incorrect.
The commands you provided do provide some interesting and occasionally valuable information. Please do not reduct those.
|
|
|
All times are GMT -5. The time now is 05:33 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|