Re: [blfs-dev] xorg problems

2012-06-27 Thread Andrew Benton
On Wed, 27 Jun 2012 06:38:00 +0100
Bruce Dubbs bruce.du...@gmail.com wrote:

 I'm trying to get xorg to start up and have some strange problems.
 
 I build xorg on /opt/xorg.  On my x86_64 system, there is no problem
 with xorg 7.6.  On both systems I get:
 
 (==) ModulePath set to /opt/xorg/lib/X11/modules
 (II) The server relies on udev to provide the list of input devices.
 If no devices become available, reconfigure udev or disable AutoAddDevices.
 
 On my 686 (xorg 7.7), I get no recognition of any input device:
 
 (==) Using system config directory /opt/xorg/share/X11/xorg.conf.d
 ...
 (II) config/udev: Adding input device HID 1241:1177 (/dev/input/mouse0)
 (II) No input driver specified, ignoring this device.
 
 $ ls -l /opt/xorg/share/X11/xorg.conf.d
 -rw-r--r-- 1 root root 1099 Jun 18 13:51 10-evdev.conf
 drwxr-xr-x 2 root root 4096 Jun 18 14:28 app-defaults
 
 There is no mention of keyboard at all.  However on my x86_64 (xorg 7.6):
 
 (==) Using config directory: /etc/X11/xorg.conf.d
 ...
 (II) config/udev: Adding input device Power Button (/dev/input/event1)
 (**) Power Button: Applying InputClass evdev keyboard catchall
 (**) Power Button: Applying InputClass evdev keyboard catchall
 (II) LoadModule: evdev
 (II) Loading /opt/xorg/lib/X11/modules/input/evdev_drv.so
 ...
 
 $ ls -l /etc/X11
 total 4
 drwxr-xr-x 4096 May 15 23:39 app-defaults
 lrwxrwxrwx   31 May 15 23:03 xorg.conf.d - /opt/xorg/share/X11/xorg.conf.d
 
 $ ls -l /opt/xorg/share/X11/xorg.conf.d
 -rw-r--r-- 1 root root 1099 May 15 23:03 10-evdev.conf
 

Please ask support questions on BLFS Support :)
Have you tried copying /opt/xorg/share/X11/xorg.conf.d to /etc/X11?

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] xorg problems

2012-06-27 Thread Armin K.
On 06/27/2012 11:14 AM, Andrew Benton wrote:
 On Wed, 27 Jun 2012 06:38:00 +0100
 Bruce Dubbs bruce.du...@gmail.com wrote:

 I'm trying to get xorg to start up and have some strange problems.

 I build xorg on /opt/xorg.  On my x86_64 system, there is no problem
 with xorg 7.6.  On both systems I get:

 (==) ModulePath set to /opt/xorg/lib/X11/modules
 (II) The server relies on udev to provide the list of input devices.
 If no devices become available, reconfigure udev or disable AutoAddDevices.

 On my 686 (xorg 7.7), I get no recognition of any input device:

 (==) Using system config directory /opt/xorg/share/X11/xorg.conf.d
 ...
 (II) config/udev: Adding input device HID 1241:1177 (/dev/input/mouse0)
 (II) No input driver specified, ignoring this device.

 $ ls -l /opt/xorg/share/X11/xorg.conf.d
 -rw-r--r-- 1 root root 1099 Jun 18 13:51 10-evdev.conf
 drwxr-xr-x 2 root root 4096 Jun 18 14:28 app-defaults

 There is no mention of keyboard at all.  However on my x86_64 (xorg 7.6):

 (==) Using config directory: /etc/X11/xorg.conf.d
 ...
 (II) config/udev: Adding input device Power Button (/dev/input/event1)
 (**) Power Button: Applying InputClass evdev keyboard catchall
 (**) Power Button: Applying InputClass evdev keyboard catchall
 (II) LoadModule: evdev
 (II) Loading /opt/xorg/lib/X11/modules/input/evdev_drv.so
 ...

 $ ls -l /etc/X11
 total 4
 drwxr-xr-x 4096 May 15 23:39 app-defaults
 lrwxrwxrwx   31 May 15 23:03 xorg.conf.d - /opt/xorg/share/X11/xorg.conf.d

 $ ls -l /opt/xorg/share/X11/xorg.conf.d
 -rw-r--r-- 1 root root 1099 May 15 23:03 10-evdev.conf


 Please ask support questions on BLFS Support :)
 Have you tried copying /opt/xorg/share/X11/xorg.conf.d to /etc/X11?

 Andy


Also, could you post full Xorg.0.log there.
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] xorg problems

2012-06-27 Thread Bruce Dubbs
Dan Nicholson wrote:
 On Tue, Jun 26, 2012 at 10:38 PM, Bruce Dubbs bruce.du...@gmail.com wrote:
 I'm trying to get xorg to start up and have some strange problems.


 Is udev all set up correctly on the bad system? In particular, your
 input devices need to have ID_INPUT and ID_INPUT_{MOUSE|KEYBOARD} set
 in the environment. Try running udevadm info --query=all
 --name=/dev/input/whatever. You can look in /proc/bus/input/devices
 to see what device node you should be looking at.

I didn't do anything different for udev than on the other system.  The 
difference is that the keyboard is ps2.

$ udevadm info --query=all name=/dev/psaux
P: /devices/virtual/misc/psaux
N: psaux
E: DEVNAME=/dev/psaux
E: DEVPATH=/devices/virtual/misc/psaux
E: MAJOR=10
E: MINOR=1
E: SUBSYSTEM=misc

$ udevadm info --query=all name=/dev/input/mouse0
P: /devices/pci:00/:00:1d.7/usb1/1-3\
   /1-3.1/1-3.1.4/1-3.1.4:1.0/input/input3/mouse0
N: input/mouse0
S: input/by-id/usb-1241_1177-mouse
S: input/by-path/pci-:00:1d.7-usb-0:3.1.4:1.0-mouse
E: DEVLINKS=/dev/input/by-id/usb-1241_1177-mouse 
/dev/input/by-path/pci-:00:1d.7-usb-0:3.1.4:1.0-mouse
E: DEVNAME=/dev/input/mouse0
E: DEVPATH=/devices/pci:00/:00:1d.7/usb1/1-3\
   /1-3.1/1-3.1.4/1-3.1.4:1.0/input/input3/mouse0
E: ID_BUS=usb
E: ID_INPUT=1
E: ID_INPUT_MOUSE=1
E: ID_MODEL=1177
E: ID_MODEL_ENC=1177
E: ID_MODEL_ID=1177
E: ID_PATH=pci-:00:1d.7-usb-0:3.1.4:1.0
E: ID_PATH_TAG=pci-_00_1d_7-usb-0_3_1_4_1_0
E: ID_REVISION=0270
E: ID_SERIAL=1241_1177
E: ID_TYPE=hid
E: ID_USB_DRIVER=usbhid
E: ID_USB_INTERFACES=:030102:
E: ID_USB_INTERFACE_NUM=00
E: ID_VENDOR=1241
E: ID_VENDOR_ENC=1241
E: ID_VENDOR_ID=1241
E: MAJOR=13
E: MINOR=32
E: SUBSYSTEM=input
E: USEC_INITIALIZED=6657769

 Do you have /etc/X11/xorg.conf on either system? Could you post the
 full log on the failing system? Also -logverbose 5 (up to 10) will put
 some extra info in the log.

I tried with and without /etc/X11/xorg.conf and with -logverbose 10.

With xorg 7.7, it doesn't appear to have 'mouse', 'keyboard', or 'kbd' 
drivers.  It only seems ot have 'evdev', 'joystick', and 'void'.

I tried adding

ection ServerFlags
  Option AutoAddDevices Off
EndSection

to xorg.conf, but that didn't help.  I'd post the Xorg log, but I don't 
think it would be meaningful right now.

My last xorg.conf is below.  I'm looking for suggestions.

   -- Bruce

Section Module
 Load   extmod
 Load   glx
 Load   dri
 Load   dbe
 Load   record
 Load   type1
 Load   freetype
EndSection

Section InputDevice
 Identifier Keyboard0
 Driver evdev
EndSection

Section InputDevice
 Identifier Mouse0
 Driver mouse   # This is not present
 Option Protocol IMPS/2
 Option Device /dev/input/mice
EndSection

Section Monitor
 Identifier Monitor0
 HorizSync   30.0 - 92.0
 VertRefresh 59.0 - 61.0
 Option DPMS
EndSection

Section Screen
 Identifier Screen0
 MonitorMonitor0
 DefaultDepth24

 SubSection Display
 Viewport0 0
 Depth   24
 Modes  1920x1200 1600x1200 1280x1024
 EndSubSection
EndSection

Section ServerFlags
  Option AutoAddDevices Off
EndSection
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] xorg problems

2012-06-27 Thread Andrew Benton
On Wed, 27 Jun 2012 18:27:31 +0100
Bruce Dubbs bruce.du...@gmail.com wrote:

 My last xorg.conf is below.  I'm looking for suggestions.

Have you tried copying /opt/xorg/share/X11/xorg.conf.d
to /etc/X11/xorg.conf.d?

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] xorg problems

2012-06-27 Thread Ken Moffat
On Wed, Jun 27, 2012 at 07:14:07PM +0100, Andrew Benton wrote:
 On Wed, 27 Jun 2012 18:27:31 +0100
 Bruce Dubbs bruce.du...@gmail.com wrote:
 
  My last xorg.conf is below.  I'm looking for suggestions.
 
 Have you tried copying /opt/xorg/share/X11/xorg.conf.d
 to /etc/X11/xorg.conf.d?
 
 Andy

 That certainly sounds as if it should help.  Bruce : the mouse and
keyboard drivers are redundant for linux nowadays.

 The mouse and (minimal) keyboard ought to be handled by 10-evdev.conf
installed by the xorg-server, with extra keyboard details in another
file there : the book uses /etc/X11/xorg.conf.d/xkb-defaults.conf in
'Setting up X Input Devices' in 'Xorg-7.7-1 Testing and Configuration'
at the end of chapter 24.

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-dev] xorg problems

2012-06-27 Thread Bruce Dubbs
Andrew Benton wrote:
 On Wed, 27 Jun 2012 18:27:31 +0100
 Bruce Dubbs bruce.du...@gmail.com wrote:
 
 My last xorg.conf is below.  I'm looking for suggestions.
 
 Have you tried copying /opt/xorg/share/X11/xorg.conf.d
 to /etc/X11/xorg.conf.d?

It's really the same place:

lrwxrwxrwx  1 root root 31 Jun 18 13:51  /etc/X11 - 
/opt/xorg/share/X11/xorg.conf.d

The log does say it finds the xorg.conf file.

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] xorg problems

2012-06-27 Thread Bruce Dubbs
Ken Moffat wrote:
 On Wed, Jun 27, 2012 at 07:14:07PM +0100, Andrew Benton wrote:
 On Wed, 27 Jun 2012 18:27:31 +0100
 Bruce Dubbs bruce.du...@gmail.com wrote:

 My last xorg.conf is below.  I'm looking for suggestions.
 Have you tried copying /opt/xorg/share/X11/xorg.conf.d
 to /etc/X11/xorg.conf.d?

 Andy
 
  That certainly sounds as if it should help.  Bruce : the mouse and
 keyboard drivers are redundant for linux nowadays.
 
  The mouse and (minimal) keyboard ought to be handled by 10-evdev.conf
 installed by the xorg-server, with extra keyboard details in another
 file there : the book uses /etc/X11/xorg.conf.d/xkb-defaults.conf in
 'Setting up X Input Devices' in 'Xorg-7.7-1 Testing and Configuration'
 at the end of chapter 24.

I know.  On my x86_64 system with usb keyboard and mouse, the same setup 
works fine without any xorg.conf.  The problem seems to be mostly around 
  the ps2 keyboard on the 686 system, although the evdev driver is not 
being loaded for the mouse.

Looking at the drivers, I see that we don't download or build 
xf86-input-keyboard-1.6.1 or xf86-input-mouse-1.7.2.  I think I'll try 
those.

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] xorg problems

2012-06-27 Thread Ken Moffat
On Wed, Jun 27, 2012 at 04:22:39PM -0500, Bruce Dubbs wrote:
 Ken Moffat wrote:
  
   That certainly sounds as if it should help.  Bruce : the mouse and
  keyboard drivers are redundant for linux nowadays.
  
   The mouse and (minimal) keyboard ought to be handled by 10-evdev.conf
  installed by the xorg-server, with extra keyboard details in another
  file there : the book uses /etc/X11/xorg.conf.d/xkb-defaults.conf in
  'Setting up X Input Devices' in 'Xorg-7.7-1 Testing and Configuration'
  at the end of chapter 24.
 
 I know.  On my x86_64 system with usb keyboard and mouse, the same setup 
 works fine without any xorg.conf.  The problem seems to be mostly around 
   the ps2 keyboard on the 686 system, although the evdev driver is not 
 being loaded for the mouse.
 
 Looking at the drivers, I see that we don't download or build 
 xf86-input-keyboard-1.6.1 or xf86-input-mouse-1.7.2.  I think I'll try 
 those.
 
 Deliberately, evdev is the expected driver for normal linux systems
using udev.  Perhaps a kernel config issue  : is CONFIG_INPUT_EVDEV
set ?  Also check if your .config mentions a PS/2 mouse (in the
input section, I'm not sure of the CONFIG name).

 I'll note that my file for the keyboard specifies
Driver evdev
hopefully not necessary, and would not affect your mouse.

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-dev] xorg problems

2012-06-27 Thread Andrew Benton
On Wed, 27 Jun 2012 22:05:44 +0100
Bruce Dubbs bruce.du...@gmail.com wrote:

 Andrew Benton wrote:
  On Wed, 27 Jun 2012 18:27:31 +0100
  Bruce Dubbs bruce.du...@gmail.com wrote:
  
  My last xorg.conf is below.  I'm looking for suggestions.
  
  Have you tried copying /opt/xorg/share/X11/xorg.conf.d
  to /etc/X11/xorg.conf.d?
 
 It's really the same place:
 
 lrwxrwxrwx  1 root root 31 Jun 18 13:51  /etc/X11 - 
 /opt/xorg/share/X11/xorg.conf.d

So you're saying that /etc/X11/xorg.conf.d does not exist? /etc/X11 is
a symbolic link pointing at /opt/xorg/share/X11/xorg.conf.d and
inside /etc/X11 there is no xorg.conf.d?
For the third time I suggest that you try copying
/opt/xorg/share/X11/xorg.conf.d to /etc/X11/xorg.conf.d

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] xorg problems

2012-06-27 Thread Bruce Dubbs
Ken Moffat wrote:
 On Wed, Jun 27, 2012 at 04:22:39PM -0500, Bruce Dubbs wrote:

  Deliberately, evdev is the expected driver for normal linux systems
 using udev.  Perhaps a kernel config issue  : is CONFIG_INPUT_EVDEV
 set ?  Also check if your .config mentions a PS/2 mouse (in the
 input section, I'm not sure of the CONFIG name).

Good spot.  I do not have CONFIG_INPUT_EVDEV set.  I do have

CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y

CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y

CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=y

On the other hand, building the keyboard and mouse drivers and 
configuring them in xorg.conf *did* work.  I'll experiment with a new 
kernel and retry with evdev just to see if that works.  If not, we might 
want to add a short note to the book.

Next, I need to figure out how to properly handle two monitors.  I'm 
using the nv driver right now, but will investigate the nouveau driver.

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] xorg problems

2012-06-27 Thread Bruce Dubbs
Andrew Benton wrote:

 So you're saying that /etc/X11/xorg.conf.d does not exist? /etc/X11 is
 a symbolic link pointing at /opt/xorg/share/X11/xorg.conf.d and
 inside /etc/X11 there is no xorg.conf.d?

As I told Ken, I got it working, but you bring up a point that we may 
need to examine.  In the xorg-server section, we create:

ln -s $XORG_PREFIX/share/X11/xorg.conf.d /etc/X11

Perhaps I did that before I created /etc/X11.  I'm not sure where it is 
created.  I checked the book's xml and couldn't find it, so it should be 
in one of the 'make install' procedures.

Xorg 7.6 creates it in xorg-apps:

test -z /etc/X11/app-defaults || /bin/mkdir -p /etc/X11/app-defaults

but not in Xorg 7.7.  I do see it made in xterm and xinit, but both of 
those come after xorg-server.

   -- Bruce

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] xorg problems

2012-06-27 Thread Ken Moffat
On Wed, Jun 27, 2012 at 05:43:48PM -0500, Bruce Dubbs wrote:
 Ken Moffat wrote:
  On Wed, Jun 27, 2012 at 04:22:39PM -0500, Bruce Dubbs wrote:
 
   Deliberately, evdev is the expected driver for normal linux systems
  using udev.  Perhaps a kernel config issue  : is CONFIG_INPUT_EVDEV
  set ?  Also check if your .config mentions a PS/2 mouse (in the
  input section, I'm not sure of the CONFIG name).
 
 Good spot.  I do not have CONFIG_INPUT_EVDEV set.  I do have
 
[ snip good settings, including the PS/2 mouse ]

 LOL - I looked through my notes, which was why I suggested it : on
both of my old x86_64 machines I was trying out evdev in 2009, when
still building both i686 and x86_64 kernels, and had a similar
problem: EVDEV set on the 64-bit kernels but not on the 32-bit.

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-dev] xorg problems

2012-06-27 Thread Bruce Dubbs
Ken Moffat wrote:
 On Wed, Jun 27, 2012 at 05:43:48PM -0500, Bruce Dubbs wrote:
 Ken Moffat wrote:
 On Wed, Jun 27, 2012 at 04:22:39PM -0500, Bruce Dubbs wrote:

 Good spot.  I do not have CONFIG_INPUT_EVDEV set.  

  LOL - I looked through my notes, which was why I suggested it : on
 both of my old x86_64 machines I was trying out evdev in 2009, when
 still building both i686 and x86_64 kernels, and had a similar
 problem: EVDEV set on the 64-bit kernels but not on the 32-bit.

I rebuilt the kernel with CONFIG_INPUT_EVDEV and now evdev works fine.

Now I'm having a problem with getting my two monitors working properly. 
  It seems that anything I do, I get the same display reflected on both 
monitors instead of stretching across both.

I'm currently using the nv driver.  My xorg.conf and Xorg.0.log are at:

   http://pastebin.com/QxHNkn2U

Any advice for the nv driver would be appreciated.  I'll try the Nouveau 
  driver next.

Also for Andy, I did remove the /etc/X11 symlink and now have:

$ ls -l /etc/X11
total 4
drwxr-xr-x 2 root root 4096 Jun 18 14:28 app-defaults
lrwxrwxrwx 1 root root   31 Jun 27 20:14 xorg.conf.d - 
/opt/xorg/share/X11/xorg.conf.d

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] xorg problems

2012-06-27 Thread Dan Nicholson
On Wed, Jun 27, 2012 at 7:54 PM, Bruce Dubbs bruce.du...@gmail.com wrote:
 Ken Moffat wrote:
 On Wed, Jun 27, 2012 at 05:43:48PM -0500, Bruce Dubbs wrote:
 Ken Moffat wrote:
 On Wed, Jun 27, 2012 at 04:22:39PM -0500, Bruce Dubbs wrote:

 Good spot.  I do not have CONFIG_INPUT_EVDEV set.

  LOL - I looked through my notes, which was why I suggested it : on
 both of my old x86_64 machines I was trying out evdev in 2009, when
 still building both i686 and x86_64 kernels, and had a similar
 problem: EVDEV set on the 64-bit kernels but not on the 32-bit.

 I rebuilt the kernel with CONFIG_INPUT_EVDEV and now evdev works fine.

 Now I'm having a problem with getting my two monitors working properly.
  It seems that anything I do, I get the same display reflected on both
 monitors instead of stretching across both.

 I'm currently using the nv driver.  My xorg.conf and Xorg.0.log are at:

   http://pastebin.com/QxHNkn2U

 Any advice for the nv driver would be appreciated.  I'll try the Nouveau
  driver next.

I think at this point the Nouveau driver is probably the preferred
open nvidia driver. However, nv should still work unless you have
really new hardware. Here's a guide that's often sited for setting up
monitors in current Xorg:

http://wiki.debian.org/XStrikeForce/HowToRandR12

 Also for Andy, I did remove the /etc/X11 symlink and now have:

 $ ls -l /etc/X11
 total 4
 drwxr-xr-x 2 root root 4096 Jun 18 14:28 app-defaults
 lrwxrwxrwx 1 root root   31 Jun 27 20:14 xorg.conf.d -
 /opt/xorg/share/X11/xorg.conf.d

FYI, the symlink is unnecessary. The organization is such that your
local configuration goes in /etc/X11/xorg.conf and
/etc/X11/xorg.conf.d. /usr/share/X11/xorg.conf.d is for package/distro
supplied configuration which has the lowest priority. That's why
10-evdev.conf is there. It supplies a very generic input device setup
that you can easily override in /etc/X11. Essentially you're just
reading in the files twice now, which won't hurt anything. Have a look
at xorg.conf.d(5).

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-dev] xorg problems

2012-06-27 Thread Dan Nicholson
On Wed, Jun 27, 2012 at 8:13 PM, Dan Nicholson dbn.li...@gmail.com wrote:
 On Wed, Jun 27, 2012 at 7:54 PM, Bruce Dubbs bruce.du...@gmail.com wrote:
 Ken Moffat wrote:
 On Wed, Jun 27, 2012 at 05:43:48PM -0500, Bruce Dubbs wrote:
 Ken Moffat wrote:
 On Wed, Jun 27, 2012 at 04:22:39PM -0500, Bruce Dubbs wrote:

 Good spot.  I do not have CONFIG_INPUT_EVDEV set.

  LOL - I looked through my notes, which was why I suggested it : on
 both of my old x86_64 machines I was trying out evdev in 2009, when
 still building both i686 and x86_64 kernels, and had a similar
 problem: EVDEV set on the 64-bit kernels but not on the 32-bit.

 I rebuilt the kernel with CONFIG_INPUT_EVDEV and now evdev works fine.

 Now I'm having a problem with getting my two monitors working properly.
  It seems that anything I do, I get the same display reflected on both
 monitors instead of stretching across both.

 I'm currently using the nv driver.  My xorg.conf and Xorg.0.log are at:

   http://pastebin.com/QxHNkn2U

 Any advice for the nv driver would be appreciated.  I'll try the Nouveau
  driver next.

 I think at this point the Nouveau driver is probably the preferred
 open nvidia driver. However, nv should still work unless you have
 really new hardware. Here's a guide that's often sited for setting up
 monitors in current Xorg:

 http://wiki.debian.org/XStrikeForce/HowToRandR12

Also, this is a good guide to modern input device setup (the input
maintainer Peter Hutterer is a fedora developer):

http://fedoraproject.org/wiki/Input_device_configuration

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-dev] xorg problems

2012-06-27 Thread DJ Lucas
On 06/27/2012 09:54 PM, Bruce Dubbs wrote:
 Ken Moffat wrote:
 On Wed, Jun 27, 2012 at 05:43:48PM -0500, Bruce Dubbs wrote:
 Ken Moffat wrote:
 On Wed, Jun 27, 2012 at 04:22:39PM -0500, Bruce Dubbs wrote:
 Good spot.  I do not have CONFIG_INPUT_EVDEV set.
   LOL - I looked through my notes, which was why I suggested it : on
 both of my old x86_64 machines I was trying out evdev in 2009, when
 still building both i686 and x86_64 kernels, and had a similar
 problem: EVDEV set on the 64-bit kernels but not on the 32-bit.
 I rebuilt the kernel with CONFIG_INPUT_EVDEV and now evdev works fine.

 Now I'm having a problem with getting my two monitors working properly.
It seems that anything I do, I get the same display reflected on both
 monitors instead of stretching across both.

Dang, it's been a really long time since I messed with it. The man page 
suggests 'Option Dualhead true' needs Virtual. Maybe two monitor 
sections and only one screen section with 'Virtual  3840 x 1200', 
(or 1920 x 2400 for top and bottom) or ditch the Dualhead option if 
using Xinerama extension, but I don't honestly know if you can use both 
outputs with the nv driver that way. Playing with an Nvidia card is 
something I've been meaning to do for a couple of years now and I have 
just never gotten around to it. Whatever the final solution is, please 
replace the example in the book, or post it so I can.

-- DJ Lucas


-- 
This message has been scanned for viruses and
dangerous content, and is believed to be clean.

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


[blfs-dev] xorg problems

2012-06-26 Thread Bruce Dubbs
I'm trying to get xorg to start up and have some strange problems.

I build xorg on /opt/xorg.  On my x86_64 system, there is no problem
with xorg 7.6.  On both systems I get:

(==) ModulePath set to /opt/xorg/lib/X11/modules
(II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.

On my 686 (xorg 7.7), I get no recognition of any input device:

(==) Using system config directory /opt/xorg/share/X11/xorg.conf.d
...
(II) config/udev: Adding input device HID 1241:1177 (/dev/input/mouse0)
(II) No input driver specified, ignoring this device.

$ ls -l /opt/xorg/share/X11/xorg.conf.d
-rw-r--r-- 1 root root 1099 Jun 18 13:51 10-evdev.conf
drwxr-xr-x 2 root root 4096 Jun 18 14:28 app-defaults

There is no mention of keyboard at all.  However on my x86_64 (xorg 7.6):

(==) Using config directory: /etc/X11/xorg.conf.d
...
(II) config/udev: Adding input device Power Button (/dev/input/event1)
(**) Power Button: Applying InputClass evdev keyboard catchall
(**) Power Button: Applying InputClass evdev keyboard catchall
(II) LoadModule: evdev
(II) Loading /opt/xorg/lib/X11/modules/input/evdev_drv.so
...

$ ls -l /etc/X11
total 4
drwxr-xr-x 4096 May 15 23:39 app-defaults
lrwxrwxrwx   31 May 15 23:03 xorg.conf.d - /opt/xorg/share/X11/xorg.conf.d

$ ls -l /opt/xorg/share/X11/xorg.conf.d
-rw-r--r-- 1 root root 1099 May 15 23:03 10-evdev.conf



both evdev files are the same.  The twm/xterm/xclock programs come up 
fine on the screen with a centered mouse pointer that I can't move and 
the keyboard is inoperative.  I can get the KB back if I kill xinit from 
an ssh session on another system.

Does anyone have any ideas about how to get more debugging info? 
/opt/xorg/lib/X11/modules/input/evdev_drv.so is on both systems.

   -- Bruce

Note: I'm testing as root.
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] xorg problems

2012-06-26 Thread Dan Nicholson
On Tue, Jun 26, 2012 at 10:38 PM, Bruce Dubbs bruce.du...@gmail.com wrote:
 I'm trying to get xorg to start up and have some strange problems.

 I build xorg on /opt/xorg.  On my x86_64 system, there is no problem
 with xorg 7.6.  On both systems I get:

 (==) ModulePath set to /opt/xorg/lib/X11/modules
 (II) The server relies on udev to provide the list of input devices.
 If no devices become available, reconfigure udev or disable AutoAddDevices.

 On my 686 (xorg 7.7), I get no recognition of any input device:

 (==) Using system config directory /opt/xorg/share/X11/xorg.conf.d
 ...
 (II) config/udev: Adding input device HID 1241:1177 (/dev/input/mouse0)
 (II) No input driver specified, ignoring this device.

 $ ls -l /opt/xorg/share/X11/xorg.conf.d
 -rw-r--r-- 1 root root 1099 Jun 18 13:51 10-evdev.conf
 drwxr-xr-x 2 root root 4096 Jun 18 14:28 app-defaults

 There is no mention of keyboard at all.  However on my x86_64 (xorg 7.6):

 (==) Using config directory: /etc/X11/xorg.conf.d
 ...
 (II) config/udev: Adding input device Power Button (/dev/input/event1)
 (**) Power Button: Applying InputClass evdev keyboard catchall
 (**) Power Button: Applying InputClass evdev keyboard catchall
 (II) LoadModule: evdev
 (II) Loading /opt/xorg/lib/X11/modules/input/evdev_drv.so
 ...

 $ ls -l /etc/X11
 total 4
 drwxr-xr-x 4096 May 15 23:39 app-defaults
 lrwxrwxrwx   31 May 15 23:03 xorg.conf.d - /opt/xorg/share/X11/xorg.conf.d

 $ ls -l /opt/xorg/share/X11/xorg.conf.d
 -rw-r--r-- 1 root root 1099 May 15 23:03 10-evdev.conf

 

 both evdev files are the same.  The twm/xterm/xclock programs come up
 fine on the screen with a centered mouse pointer that I can't move and
 the keyboard is inoperative.  I can get the KB back if I kill xinit from
 an ssh session on another system.

 Does anyone have any ideas about how to get more debugging info?
 /opt/xorg/lib/X11/modules/input/evdev_drv.so is on both systems.

Is udev all set up correctly on the bad system? In particular, your
input devices need to have ID_INPUT and ID_INPUT_{MOUSE|KEYBOARD} set
in the environment. Try running udevadm info --query=all
--name=/dev/input/whatever. You can look in /proc/bus/input/devices
to see what device node you should be looking at.

Do you have /etc/X11/xorg.conf on either system? Could you post the
full log on the failing system? Also -logverbose 5 (up to 10) will put
some extra info in the log.

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page