Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOVED] lspci shows only device codes in konsole -e "su -"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
kaTiezei
n00b
n00b


Joined: 10 Mar 2013
Posts: 39

PostPosted: Wed Jan 15, 2014 6:39 pm    Post subject: [SOVED] lspci shows only device codes in konsole -e "su Reply with quote

Hello,

lspci shows only device codes when called from my shortcut
Code:
konsole -e  "su -"
It works fine (meaning an output similar to "lspci -nn") when I open Konsole, call "sudo su -", enter my user password and enter "lspci" and as root on tty1.


konsole -e "su -":
00:00.0 Class 0600: 8086:2a40
...


sudo su - manually:

00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
...


How can I have the usual lspci output in my root Konsole?


Last edited by kaTiezei on Thu Jan 23, 2014 7:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
tomtom69
Apprentice
Apprentice


Joined: 09 Nov 2010
Posts: 202
Location: Bavaria

PostPosted: Thu Jan 16, 2014 12:53 pm    Post subject: Reply with quote

There are several ways where lspci gets the verbose ID info from.
If you ever used the -q option a file named ~/.pciids-cache may exist with ID information. You can safely delete this file if it exists and retry.
Locally the ID texts are stored at /usr/share/misc/pci.ids so you might also check access permissions for this file.
Back to top
View user's profile Send private message
kaTiezei
n00b
n00b


Joined: 10 Mar 2013
Posts: 39

PostPosted: Sat Jan 18, 2014 7:22 pm    Post subject: Reply with quote

Thank you, I didn't know about these files, but it didn't help.

~/.pciids-cache doesn't exist.

Code:
s -la /usr/share/misc/pci.ids
-rw-r--r-- 1 root root 869715 <install-time> /usr/share/misc/pci.ids

Should be ok.
Back to top
View user's profile Send private message
tomtom69
Apprentice
Apprentice


Joined: 09 Nov 2010
Posts: 202
Location: Bavaria

PostPosted: Sun Jan 19, 2014 6:36 pm    Post subject: Reply with quote

This is strange.
You could try to re-emerge lspci, which is part of the "pciutils" ebuild.
There could also be an old version of lspci located at a path that is not always present.
What does "whereis lspci" display in the console at which lspci doesn't work?
Back to top
View user's profile Send private message
kaTiezei
n00b
n00b


Joined: 10 Mar 2013
Posts: 39

PostPosted: Wed Jan 22, 2014 6:15 pm    Post subject: Reply with quote

After reemerging pciutils:
Code:
 whereis lspci
lspci: /bin/lspci /usr/sbin/lspci /usr/share/man/man8/lspci.8.bz2

/bin/lspci
00:00.0 Class 0600: 8086:2a40
...

/usr/sbin/lspci
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
...


You're right, two versions. Maybe I could remove the one in /bin/lspci and substitute it with a link to
/usr/sbin/lspci ?
Back to top
View user's profile Send private message
tomtom69
Apprentice
Apprentice


Joined: 09 Nov 2010
Posts: 202
Location: Bavaria

PostPosted: Thu Jan 23, 2014 7:05 pm    Post subject: Reply with quote

I have only /usr/sbin/lspci, so I assume the /bin/lspci is not needed. Pciutils also installs only /usr/sbin/lspci.
So I assume it is safe to remove /bin/lspci.
If you are unsure you could make a backup of the file before removing and/or check the creation dates of the files (/bin/lspci should be the older one).
However removing should be absolutely safe because lspci is not critical for system operation.
Back to top
View user's profile Send private message
kaTiezei
n00b
n00b


Joined: 10 Mar 2013
Posts: 39

PostPosted: Thu Jan 23, 2014 7:38 pm    Post subject: Reply with quote

Now I noticed that /bin/lspci is a link to busybox. And yes, it's half an year older than the other one.
Code:
ls -la /bin/lspci
lrwxrwxrwx 1 root root 12 Jun 16  2013 /bin/lspci -> /bin/busybox

After moving it, I have the right output in konsole -e "su -". Thank you!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum