Curt composed on 2017-07-22 15:58 (UTC-0400):

> Felix Miata wrote:

>> D. R. Evans composed on 2017-07-22 13:06 (UTC-0600):

>>> Reco wrote:

>>>> grep -i glx ~/.local/share/xorg/Xorg.[0-9]*.log

>>> [HN:~] grep -i glx ~/.local/share/xorg/Xorg.[0-9]*.log
>>> grep: /home/n7dr/.local/share/xorg/Xorg.[0-9]*.log: No such file or 
>>> directory
>>> [HN:~]

>> I don't know why he suggested that:

> KMS rootless X indeed puts the log in ~/.local/share/xorg. As it's
> enabled by default for the nouveau driver since Squeeze, the "No such
> file or directory" message indicates the OP is using the proprietary
> driver, for which KMS must be enabled manually.

Rather than "suggested that" I should have written "suggested glx as search 
string".

I don't often here fail to find a current /var/log/Xorg.0.log. I think what's
happening is the one in .local/share/ is getting copied to /var/log/ so that it
remains available in the location people historically expect, where Googling
will suggest to look, plus the typing is easier with no shifts required and
fewer characters to type.

> Kind of a roundabout, teach a fish to fly kind of thing, but Reco is
> twisted.

> Actually just kidding.

> How 'bout

>  grep -B2 'Module class: X.Org Video Driver' /var/log/Xorg.0.log

Is a mere mortal going to know, seeing the following, which driver is actually
in use?

# grep -B2 'Module class: X.Org Video Driver' /var/log/Xorg.0.log
[    22.731] (II) Module modesetting: vendor="X.Org Foundation"
..
[    22.731] (II) Module fbdev: vendor="X.Org Foundation"
..
[    22.731] (II) Module vesa: vendor="X.Org Foundation"

Someone using a file viewer (e.g. MC -> F3) rather than grep is going to spot a
large mass of similar *(0) lines faster than one short string in a file with 300
or more lines.

Another grepping option:

# grep Output /var/log/Xorg.0.log
[    22.851] (II) modeset(0): Output VGA-0 has no monitor section
[    22.864] (II) modeset(0): Output HDMI-0 has no monitor section
[    22.864] (II) modeset(0): Output HDMI-1 has no monitor section
[    22.879] (II) modeset(0): Output VGA-0 disconnected
[    22.879] (II) modeset(0): Output HDMI-0 connected
[    22.879] (II) modeset(0): Output HDMI-1 disconnected
[    22.879] (II) modeset(0): Output HDMI-0 using initial mode 1920x1200

> But then if the OP had been using the nouveau driver, he'd get a "No such
> file or directory" message.

> Now a word from our sponsor.-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/

Reply via email to