Bug#387563: Typo: lspci -X should be lspci -n
> Of course, as you say "lspci -n" is not useful for the purpose here. > > Recommending "lspci" alone or "(lspci ; lspci -n)|sort" as we do for > D-I would be a better option. > > Waiting for the final XSF advice and I'll commit one of these. I In private, Matt pointed me to "lspci -nn" but also pointed that these info are probably not very useful in the context of X and "lspci" alone should be enough. I'll therefore commit a change replacing "lspci -n" by "lspci" alone. signature.asc Description: Digital signature
Bug#387563: Typo: lspci -X should be lspci -n
> The X people assured me it wasn't being used. I'm not reintroducing the > flag. I don't understand why you'd want -n. *I* was indeed following the bug reporter suggestion with the main intent of ifxing translations along with the original sentence and do it The Right Way. Of course, as you say "lspci -n" is not useful for the purpose here. Recommending "lspci" alone or "(lspci ; lspci -n)|sort" as we do for D-I would be a better option. Waiting for the final XSF advice and I'll commit one of these. I actually do not insist deeply to commit changes myself...but I insist on translations (debian/po/*po and debian/po/templates.pot) not being broken which means that they should be modified on the fly before running debconf-udpatepo (also note that debconf-updatepo should not be run on a sarge machine). signature.asc Description: Digital signature
Bug#387563: Typo: lspci -X should be lspci -n
On Fri, Sep 15, 2006 at 03:07:01PM +0200, Michel D?nzer wrote: > On Fri, 2006-09-15 at 08:27 +0300, Tapio Lehtonen wrote: > > My lspci command does not have option -X. I think it should be -n. > > > > The text shown to user is here: > > > > msgid "" > > "You may wish to use the \"lspci -X\" command to determine the bus location > > " > > "of your PCI, AGP, or PCI-Express video card." > > > > It should be: > > > > msgid "" > > "You may wish to use the \"lspci -n\" command to determine the bus location > > " > > "of your PCI, AGP, or PCI-Express video card." > > Then it should prbably also mention that lspci -n prints hex numbers, > but X takes decimal... from the pciutils changelog: > > Looks like it was used after all. The X people assured me it wasn't being used. I'm not reintroducing the flag. I don't understand why you'd want -n. Users of PowerPC machines, and users of any computer with multiple video devices, should specify the BusID of the video card in an accepted bus-specific format. . Examples: . ISA:1 PCI:0:16:0 SBUS:/[EMAIL PROTECTED],1000/[EMAIL PROTECTED],10001000/SUNW,[EMAIL PROTECTED],80 . For users of multi-head setups, this option will configure only one of the heads. Further configuration will have to be done manually in the X server configuration file, /etc/X11/xorg.conf. . The lspci command shows the bus location of your PCI, AGP, or PCI-Express video card in hexadecimal, please note that it must be specified in decimal in the configuration file. . When possible, this question has been pre-answered for you and you should accept the default unless you know it doesn't work. Or alternatively, you could include a little program that shows you all your VGA cards. Something like this: #!/usr/bin/perl require "shellwords.pl"; while (<>) { @line = shellwords($_); next unless $line[1] =~ /VGA/; ($bus,$dev,$fn) = ($line[0] =~ /^(\S+):(\S+).(\d)/); $bus = hex($bus); $dev = hex($dev); print "PCI:$bus:$dev:$fn ($line[2] $line[3])\n"; } Normally, you'd invoke it like this: $ lspci -m | ./Xlspci PCI:1:0:0 (nVidia Corporation NV17 [GeForce4 420 Go 32M]) But for the sake of testing ... $ echo -e '01:1f.7 "VGA compatible controller" "nVidia Corporation" "NV17 [GeForce4 420 Go 32M]" -ra3 "Hewlett-Packard Company" "tc1100 tablet"\nff:10.5 "VGA compatible controller" "nVidiot Corporation" "NV17 [GeForce4 420 Go 32M]" -ra3 "Hewlett-Packard Company" "tc1100 tablet"' | ./Xlspci PCI:1:31:7 (nVidia Corporation NV17 [GeForce4 420 Go 32M]) PCI:255:16:5 (nVidiot Corporation NV17 [GeForce4 420 Go 32M]) (If you prefer not to pipe data at it, this also works: #!/usr/bin/perl require "shellwords.pl"; open F, "lspci -m|" || die "Could not execute lspci"; while () { @line = shellwords($_); next unless $line[1] =~ /VGA/; ($bus,$dev,$fn) = ($line[0] =~ /^(\S+):(\S+)\.(\d)/); $bus = hex($bus); $dev = hex($dev); print "PCI:$bus:$dev:$fn ($line[2] $line[3])\n"; } But I prefer to be able to test it). The advanced hacker might want to extend this to support PCI domains (hint, use lspci -mD to see domain numbers), but I don't know what the X syntax is for specifying domains. And we could do with a bit more error checking ... but I think you see the idea. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#387563: Typo: lspci -X should be lspci -n
On Fri, 2006-09-15 at 08:27 +0300, Tapio Lehtonen wrote: > Package: xorg > Severity: normal > Tags: patch > > > My lspci command does not have option -X. I think it should be -n. > > The text shown to user is here: > > msgid "" > "You may wish to use the \"lspci -X\" command to determine the bus location " > "of your PCI, AGP, or PCI-Express video card." > > It should be: > > msgid "" > "You may wish to use the \"lspci -n\" command to determine the bus location " > "of your PCI, AGP, or PCI-Express video card." Then it should prbably also mention that lspci -n prints hex numbers, but X takes decimal... from the pciutils changelog: pciutils (1:2.2.1-1) unstable; urgency=low [ Matthew Wilcox ] [...] * Remove -X option as upstream has vetoed it. It wasn't actually being used anyway. [...] pciutils (1:2.1.11-13) unstable; urgency=low [...] * Add -X option for output suitable for use in XFree86Config (closes: #251828) Looks like it was used after all. -- Earthling Michel Dänzer | http://tungstengraphics.com Libre software enthusiast | Debian, X and DRI developer
Bug#387563: Typo: lspci -X should be lspci -n
tags 387563 pending thanks Quoting Tapio Lehtonen ([EMAIL PROTECTED]): > Package: xorg > Severity: normal > Tags: patch > > > My lspci command does not have option -X. I think it should be -n. Fixed in SVN. I also changed translations accordingly (one of the very few cases where this is safe). signature.asc Description: Digital signature
Processed: Re: Bug#387563: Typo: lspci -X should be lspci -n
Processing commands for [EMAIL PROTECTED]: > tags 387563 pending Bug#387563: Typo: lspci -X should be lspci -n Tags were: patch Tags added: pending > thanks Stopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#387563: Typo: lspci -X should be lspci -n
Package: xorg Severity: normal Tags: patch My lspci command does not have option -X. I think it should be -n. The text shown to user is here: msgid "" "You may wish to use the \"lspci -X\" command to determine the bus location " "of your PCI, AGP, or PCI-Express video card." It should be: msgid "" "You may wish to use the \"lspci -n\" command to determine the bus location " "of your PCI, AGP, or PCI-Express video card." -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Kernel: Linux 2.6.8-3-686-smp Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]