Syndaemon: X Error of failed request: BadDevice

Bug #295236 reported by der_vegi
62
This bug affects 10 people
Affects Status Importance Assigned to Milestone
xserver-xorg-input-synaptics (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: xfree86-driver-synaptics

Using Intrepid final on amd64 and xserver-xorg-input-synaptics 0.15.2-0ubuntu7.

Since my upgrade to Intrepid (amd64), syndaemon does not work any more. As William Grant points out in http://ubuntuforums.org/showthread.php?t=905362, the syndaemon to disable a touchpad while typing should now work without SHMConfig. But when I start syndaemon with 'syndaemon -i 0.5 -d', I get the following error:

X Error of failed request: BadDevice, invalid or uninitialized input device
  Major opcode of failed request: 146 (XInputExtension)
  Minor opcode of failed request: 3 (X_OpenDevice)
  Serial number of failed request: 10
  Current serial number in output stream: 10

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 8.10
Package: xserver-xorg-input-synaptics 0.15.2-0ubuntu7
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: xfree86-driver-synaptics
Uname: Linux 2.6.27-7-generic x86_64
[lspci]
00:00.0 Host bridge [0600]: ATI Technologies Inc RS480 Host Bridge [1002:5950] (rev 10)
     Subsystem: Dell Device [1028:01f5]
01:05.0 VGA compatible controller [0300]: ATI Technologies Inc RS482 [Radeon Xpress 200M] [1002:5975]
     Subsystem: Dell Device [1028:01f5]

Revision history for this message
der_vegi (m-may) wrote :
Revision history for this message
der_vegi (m-may) wrote :
Revision history for this message
der_vegi (m-may) wrote :
Revision history for this message
der_vegi (m-may) wrote :
der_vegi (m-may)
description: updated
Revision history for this message
Joshua Blount (jblount) wrote :

Have you run with -S (Enabling SHMConfig) ? I'm unaware of the downsides of this method, but it fixed the issue for me. Your new command would simply look something like:

'syndaemon -i 0.5 - S -d'

Revision history for this message
der_vegi (m-may) wrote :

In the above mentioned forum thread, William Grant points out that "It is a massive security risk" to enable SHMConfig.

For me, 'syndaemon -i 0.5 - S -d' results in the same error, ' syndaemon -i 0.5 -S -d' produces 'Can't access shared memory area. SHMConfig disabled?'.

William Grant (wgrant)
Changed in xserver-xorg-input-synaptics:
assignee: nobody → wgrant
status: New → Triaged
Revision history for this message
mirage (tusi-mora) wrote :

I had the same issue.

Using "-S" solved the problem.

Revision history for this message
der_vegi (m-may) wrote :

Have you set something for your touchpad in your xorg.conf?

Revision history for this message
Isaac Dupree (idupree) wrote :

according to http://ubuntuforums.org/archive/index.php/t-948250.html ,

either (not sure)

"deb http://ppa.launchpad.net/wgrant/ubuntu intrepid main"

or

http://launchpadlibrarian.net/18664539/xserver-xorg-input-synaptics_0.15.2-0ubuntu7~wgrant3_amd64.deb

is likely to work... whereas syndaemon on Ubuntu Intrepid x86_64 LiveCD is broken.

Revision history for this message
Isaac Dupree (idupree) wrote :

That package fixes it for me on Intrepid x86_64. Can we have an SRU at some point?

(hint to testers, after putting the "deb" line in /etc/apt/sources.list, syntax is `sudo aptitude install xserver-xorg-input-synaptics=0.15.2-0ubuntu7~wgrant3` -- it took me ages to figure this out. And apparently apt thinks it's a "downgrade".)

Revision history for this message
der_vegi (m-may) wrote :

Oh, this package (xserver-xorg-input-synaptics=0.15.2-0ubuntu7~wgrant3) does indeed fix the problem for me. Don't know, why I did not install it before... ;)
But an official update would be nice, indeed.

Bryce Harrington (bryce)
description: updated
Revision history for this message
dlstyley (deaston) wrote :

same problem and same fix on amd64. Thanks! Now if someone can just get this fix into the mail repo...

Revision history for this message
der_vegi (m-may) wrote :

Strange. The version 0.15.2-0ubuntu7, which came a week or so over some updates, does introduce the error again, while reinstalling 0.15.2-0ubuntu7~wgrant3 fixes it.

Revision history for this message
_oOMOo_ (hermann-blaxhall) wrote :

This bug is also present in Jaunty, on x86_64:

:~$ syndaemon -d -t
X Error of failed request: BadDevice, invalid or uninitialized input device
  Major opcode of failed request: 144 (XInputExtension)
  Minor opcode of failed request: 3 (X_OpenDevice)
  Serial number of failed request: 10
  Current serial number in output stream: 10

Revision history for this message
Tom Jennings (tomj-wps) wrote :

Here are all the details in one place. First, you need to enable the eeeeevil SHMConfig for the touchpad. xorg.conf below. Restart x. Then -S option (not in the man page for syndaemon, but visible with -h) works.

$ syndaemon -i 0.5 -t -S -d

works.

Section "InputDevice"
        Identifier "Synaptics Touchpad"
        Driver "synaptics"
        Option "SendCoreEvents" "true"
        Option "Device" "/dev/psaux"
        Option "Protocol" "auto-dev"
        Option "HorizEdgeScroll" "0"
        Option "SHMConfig" "on"

EndSection

Section "ServerLayout"
        Identifier "Default Layout"
        Screen "Default Screen"
        InputDevice "Synaptics Touchpad"
EndSection

Revision history for this message
der_vegi (m-may) wrote :

Yeah, but isn't that just a workaround as it is supposed to work without the settings in xorg.conf now?

On my Jaunty daily-live 20090306 with all updates applied, I still have the same error (not doing anything in my xorg.conf):
X Error of failed request: BadDevice, invalid or uninitialized input device
  Major opcode of failed request: 141 (XInputExtension)
  Minor opcode of failed request: 3 (X_OpenDevice)
  Serial number of failed request: 10
  Current serial number in output stream: 10

Revision history for this message
_oOMOo_ (hermann-blaxhall) wrote :

This bug is desperately unloved. I imagine that I can apply the workaround mentioned above, as in the past, to enable SHMConfig - but I have been labouring under the apprehension that enabling SHMConfig would no longer be a prerequisite of using syndaemon. Is this a misapprehension?

Revision history for this message
Andreas Berger (andreas-berger-hagfors) wrote :

I'm also having this bug on 64-bit Jaunty. Well, it's been there since Intrepid...

Revision history for this message
Duane Hinnen (duanedesign) wrote :

NOTE:These are the comments from a duplicate bug report. Complete with patch.

Binary package hint: xserver-xorg-input-synaptics

syndaemon in Intrepid was able to function without SHMConfig. This functionality is gone in Jaunty with 0.99.3-1ubuntu1 when 104_syndaemon_xinput_props.patch was dropped as obsolete.

Message:
Can't access shared memory area. SHMConfig disabled?

Installed xserver-xorg-input-synaptics 0.99.3-1ubuntu2
Linux gruber-laptop 2.6.28-5-generic #15-Ubuntu SMP Thu Jan 22 21:21:04 UTC 2009 i686 GNU/Linux

Description: Ubuntu jaunty (development branch)
Release: 9.04

I've attached an updated 108_syndaemon_xinput_props.patch assuming this functionality is desired in Jaunty. I've tested it on my system.

I assume that the reference to xfree86-driver-synaptics of the bug reporting guidelines' on this new bug reporting page is out-of-date and that I've done the right thing changing this to xserver-xorg-input-synaptics.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: xserver-xorg-input-synaptics 0.99.3-1ubuntu2
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: xfree86-driver-synaptics
Uname: Linux 2.6.28-5-generic i686

Revision history for this message
Bubbi (tgread) wrote :

I'm also having this problem...

I have SHMConfig enabled in xorg.conf but when I execute syndaemon I get the following

tim@ASUS-M51Sn:~$ syndaemon -d -i 1 -t -k
X Error of failed request: BadDevice, invalid or uninitialized input device
  Major opcode of failed request: 143 (XInputExtension)
  Minor opcode of failed request: 3 (X_OpenDevice)
  Serial number of failed request: 12
  Current serial number in output stream: 12

Jaunty x64 with all updates applied.

I'm REALLY hoping that I'm not going to have to compile this myself...

Revision history for this message
der_vegi (m-may) wrote :

Same here. I also have SHMconfig enabled in xorg.conf, but with 'syndaemon -i 1 -d -S' I get
'Can't access shared memory area. SHMConfig disabled?'
With 'syndaemon -i 1 -d'
'X Error of failed request: BadDevice, invalid or uninitialized input device
  Major opcode of failed request: 141 (XInputExtension)
  Minor opcode of failed request: 3 (X_OpenDevice)
  Serial number of failed request: 12
  Current serial number in output stream: 12'

Jaunty amd64 with all updates applied. xfree86-driver-synaptics 0.99.3-2ubuntu4.

Revision history for this message
_oOMOo_ (hermann-blaxhall) wrote :

I have syndaemon working now, by adding a file synaptics.fdi to /etc/hal/fdi/policy/ (note the SHMConfig option)

<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.touchpad">
      <merge key="input.x11_options.TapButton2" type="string">3</merge>
      <merge key="input.x11_options.TapButton3" type="string">2</merge>
      <merge key="input.x11_options.RightEdge" type="string">5100</merge>
      <merge key="input.x11_options.SHMConfig" type="string">On</merge>
      <merge key="input.x11_options.FingerHigh" type="string">35</merge>
      <merge key="input.x11_options.FingerLow" type="string">25</merge>
      <merge key="input.x11_options.MaxTapTime" type="string">180</merge>
      <merge key="input.x11_options.MaxTapMove" type="string">220</merge>
      <merge key="input.x11_options.ClickTime" type="string">0</merge>
      <merge key="input.x11_options.VertScrollDelta" type="string">45</merge>
      <merge key="input.x11_options.HorizScrollDelta" type="string">45</merge>
      <merge key="input.x11_options.EdgeMotionMinSpeed" type="string">200</merge>
      <merge key="input.x11_options.EdgeMotionMaxSpeed" type="string">200</merge>
    </match>
  </device>
</deviceinfo>

and using the command

$ syndaemon -i 0.5 -t -S -d as suggested by Tom Jennings above

Revision history for this message
der_vegi (m-may) wrote :

Ah, thanks. Adding the "Server Layout" section and the file above makes it work. But at least in Hardy, it used to be easier...

Revision history for this message
John S. Gruber (jsjgruber) wrote :

Without enabling SHMconfig I'm successful using the follwing command:

syndaemon -i 2 -d

Leaving off -S as directly above tells updated syndaemon's to use xinput rather than SHMconfig shared memory. If I leave off the -d and run from the command line I can see the touchpad be disabled and enabled. Using a -i value of 2 seems more reliable than -i 0.5 for me.

I'm running xserver-xorg-input-synaptics 0.99.3-2ubuntu4 on a Toshiba Satellite L355D-S7825.

Does the above command still fail for others when running the released jaunty?

Preleases of jaunty (xserver-xorg-input-synaptics 0.99.3-2) were missing a patch which enabled operation without using shared memory but Intrepid without shared memory worked for me.The lack of the patch in early jaunty preleases is what bug 321355 was about.

Revision history for this message
FokkerCharlie (charlie-andrews) wrote :

Using xserver-xorg-input-synaptics 0.99.3-2ubuntu4 on my updated Jaunty 64 setup still gives the failure as described.

With the -S option, no error is generated, but syndaemon does not appear to have any effect.

Cheers
Charlie

Revision history for this message
der_vegi (m-may) wrote :

Yeah, for me, it does not have any effect any more, either.

Revision history for this message
Ao Phidly (aophidly) wrote :

Confirmed, Ubuntu 9.04 x64
setup via hal. gysynaptics works fine. synclient works fine. syndaemon does not:
$ syndaemon
X Error of failed request: BadDevice, invalid or uninitialized input device
  Major opcode of failed request: 141 (XInputExtension)
  Minor opcode of failed request: 3 (X_OpenDevice)
  Serial number of failed request: 12
  Current serial number in output stream: 12

also, to person above:
    <merge key="input.x11_options.SHMConfig" type="string">On</merge>
should be
    <merge key="input.x11_options.SHMConfig" type="string">True</merge>
should it not? is the different in expected string part of the problem here?

Revision history for this message
knownbad (knownbad-) wrote :

this works for me from terminal and startup on a fresh installed ubuntu 9.04 amd64.

syndaemon -d -S

Revision history for this message
Bryce Harrington (bryce) wrote :

wgrant, what is the status on the patch you attached above? Is it still relevant for karmic (or perhaps we should focus on LL at this point?)

Revision history for this message
William Grant (wgrant) wrote :

This is long fixed upstream.

Changed in xserver-xorg-input-synaptics (Ubuntu):
status: Triaged → Fix Released
assignee: William Grant (wgrant) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.