LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 11-16-2015, 04:56 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 931

Rep: Reputation: 44
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.
 
Old 11-16-2015, 05:41 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,845

Rep: Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800
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?
 
Old 11-16-2015, 06:53 AM   #3
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 931

Original Poster
Rep: Reputation: 44
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.
 
Old 11-17-2015, 05:27 AM   #4
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,845

Rep: Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800
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.
 
Old 11-17-2015, 05:36 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,253

Rep: Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419
https://help.ubuntu.com/community/MultiArch
 
Old 11-18-2015, 04:00 AM   #6
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 931

Original Poster
Rep: Reputation: 44
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 ?
 
Old 11-18-2015, 04:08 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,253

Rep: Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419
probably it depends on multiarch support (if it was enabled or disabled). Or probably you installed something differently before....
 
Old 11-18-2015, 12:17 PM   #8
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,845

Rep: Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800
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!
 
Old 11-26-2015, 06:32 AM   #9
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 931

Original Poster
Rep: Reputation: 44
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
 
Old 11-26-2015, 06:36 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,253

Rep: Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419
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.
 
Old 11-27-2015, 08:51 AM   #11
debguy
Member
 
Registered: Oct 2014
Location: U.S.A.
Distribution: mixed, mostly debian slackare today
Posts: 207

Rep: Reputation: 19
$ 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.
 
Old 11-27-2015, 09:00 AM   #12
debguy
Member
 
Registered: Oct 2014
Location: U.S.A.
Distribution: mixed, mostly debian slackare today
Posts: 207

Rep: Reputation: 19
Quote:
Originally Posted by pan64 View Post
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)
 
Old 11-27-2015, 09:54 AM   #13
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,845

Rep: Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800Reputation: 2800
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to check linux kernel is 32 bit or 64 bit surprise_frnd Linux - General 13 10-16-2012 09:55 AM
VGA Problem On Slackware 13.1, 64 bit Calmrod Slackware 7 09-06-2010 08:14 PM
How to check kernel type before install whether it is 32 bit or 64 bit harpreetis25 Linux - Server 1 06-10-2009 09:18 AM
Making XP use the standard VGA driver for an old card with no XP driver MonctonJohn General 4 02-25-2008 09:33 AM
How to write vga card driver and lcd driver? bobby1112 Programming 2 09-29-2006 05:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration