Processed: Re: Bug#259080: xserver-xfree86: Please special case mouse setup for GNU/Hurd
Processing commands for [EMAIL PROTECTED]: > tags 259080 fixed-upstream Bug#259080: xserver-xfree86: [debconf] please use special defaults for GNU/Hurd There were no tags set. Tags added: fixed-upstream > kthxbye 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#259080: xserver-xfree86: Please special case mouse setup for GNU/Hurd
tags 259080 fixed-upstream kthxbye On Sun, Aug 12, 2007 at 02:45:07 +0200, Samuel Thibault wrote: > Hi, > > Better way: making /dev/mouse the default :) > Here is a patch. > Pushed upstream, thanks! commit 03f9da672466b9ab9a9814d784b8c44f1030587e Author: Samuel Thibault <[EMAIL PROTECTED]> Date: Sun Aug 12 03:07:04 2007 +0200 xfree86: Improve default mouse handling on the Hurd Make /dev/mouse the default device. This makes Xorg works with empty or missing InputDevice sections. Cheers, Julien signature.asc Description: Digital signature
Bug#259080: xserver-xfree86: Please special case mouse setup for GNU/Hurd
Hi, Better way: making /dev/mouse the default :) Here is a patch. Samuel --- hw/xfree86/os-support/hurd/hurd_mouse.c.orig2007-08-11 23:02:09.0 +0200 +++ hw/xfree86/os-support/hurd/hurd_mouse.c 2007-08-11 23:10:46.785313000 +0200 @@ -47,6 +47,8 @@ #include #include +#define DEFAULT_MOUSE_DEV "/dev/mouse" + typedef unsigned short kev_type; /* kd event type */ typedef unsigned char Scancode; @@ -247,6 +249,26 @@ return TRUE; } +static const char * +FindDevice(InputInfoPtr pInfo, const char *protocol, int flags) +{ +const char path[] = DEFAULT_MOUSE_DEV; +int fd; + +SYSCALL (fd = open(path, O_RDWR | O_NONBLOCK | O_EXCL)); + +if (fd == -1) + return NULL; + +close(fd); +pInfo->conf_idev->commonOptions = + xf86AddNewOption(pInfo->conf_idev->commonOptions, "Device", path); +xf86Msg(X_INFO, "%s: Setting Device option to \"%s\"\n", pInfo->name, + path); + +return path; +} + static int SupportedInterfaces(void) { @@ -276,7 +298,6 @@ return FALSE; } -/* XXX Is this appropriate? If not, this function should be removed. */ static const char * DefaultProtocol(void) { @@ -293,6 +314,7 @@ return NULL; p->SupportedInterfaces = SupportedInterfaces; p->BuiltinNames = BuiltinNames; +p->FindDevice = FindDevice; p->DefaultProtocol = DefaultProtocol; p->CheckProtocol = CheckProtocol; p->PreInit = OsMousePreInit;
Bug#259080: xserver-xfree86: Please special case mouse setup for GNU/Hurd
Samuel Thibault, le Sun 12 Aug 2007 02:45:07 +0200, a écrit : > Better way: making /dev/mouse the default :) > Here is a patch. (I forgot to mention: currently, empty or non-existing keyboard & mouse sections now work fine) Samuel
Processed: Re: Bug#259080: xserver-xfree86: Please special case mouse setup for GNU/Hurd
Processing commands for [EMAIL PROTECTED]: > reassign 259080 xserver-xorg Bug#259080: xserver-xfree86: [debconf] please use special defaults for GNU/Hurd Bug reassigned from package `xserver-xfree86' to `xserver-xorg'. > severity 259080 important Bug#259080: xserver-xfree86: [debconf] please use special defaults for GNU/Hurd Severity set to `important'. > 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#259080: xserver-xfree86: Please special case mouse setup for GNU/Hurd
reassign 259080 xserver-xorg severity 259080 important thanks On Wed, Jul 14, 2004 at 12:31:06PM -0500, Branden Robinson wrote: > On Tue, Jul 13, 2004 at 12:55:25AM +0200, Michael Banck wrote: > > The configuration for GNU/Linux and GNU/Hurd is mostly identical, > > however, there is a difference in how the mouse is setup. > > > > Basically, on hurd-i386, the Device should always be "/dev/mouse" and > > the Protocol be "osmouse". ZAxisMapping should not be set, > > Emulate3Buttons can be, depending on debconf. > > > > Unfortunately, I'm no debconf wizard, so I hope the changes are not > > overly complex and could be done relatively easily. > > Yes, this is one of the simpler parts of the problem space. Since moving to xserver-xorg, dpkg-reconfigure (even at low priority) does not work anymore, since the debconf values for inputdevice/mouse/port and inputdevice/mouse/protocol are empty, leading to an error message and a 0 size xorg.conf, from /var/cache/debconf/config.dat: Name: xserver-xorg/config/inputdevice/mouse/port Template: xserver-xorg/config/inputdevice/mouse/port Value: Owners: xserver-xorg Flags: seen Variables: choices = Name: xserver-xorg/config/inputdevice/mouse/protocol Template: xserver-xorg/config/inputdevice/mouse/protocol Value: Owners: xserver-xorg Flags: seen Variables: choices = I tried to set them manually in there, but to no avail (not being a debconf guru). Thus upgrading this bug report to important, as it renders the package useless on a non-releasing architecture. Anyway, the right values for hurd-i386 are "/dev/mouse" for port and "osmouse" for protocol, could this made default? This is what dpkg-architecture outputs, if it helps: DEB_BUILD_ARCH=hurd-i386 DEB_BUILD_ARCH_OS=hurd DEB_BUILD_ARCH_CPU=i386 DEB_BUILD_GNU_CPU=i486 DEB_BUILD_GNU_SYSTEM=gnu DEB_BUILD_GNU_TYPE=i486-gnu DEB_HOST_ARCH=hurd-i386 DEB_HOST_ARCH_OS=hurd DEB_HOST_ARCH_CPU=i386 DEB_HOST_GNU_CPU=i486 DEB_HOST_GNU_SYSTEM=gnu DEB_HOST_GNU_TYPE=i486-gnu Should I find somebody who whips up a patch for this? cheers, Michael -- Michael Banck Debian Developer [EMAIL PROTECTED] http://www.advogato.org/person/mbanck/diary.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#259080: xserver-xfree86: Please special case mouse setup for GNU/Hurd
On Tue, Jul 13, 2004 at 12:55:25AM +0200, Michael Banck wrote: > The configuration for GNU/Linux and GNU/Hurd is mostly identical, > however, there is a difference in how the mouse is setup. > > Basically, on hurd-i386, the Device should always be "/dev/mouse" and > the Protocol be "osmouse". ZAxisMapping should not be set, > Emulate3Buttons can be, depending on debconf. I have to correct myself here: Emulate3Buttons should *not* be set as well. I just found out that setting this options results in Button-pressed events only getting transmitted together with the Button-released event (by looking at xev). This prevents e.g. dragging of windows. Michael
Bug#259080: xserver-xfree86: Please special case mouse setup for GNU/Hurd
On Wed, Jul 14, 2004 at 12:31:06PM -0500, Branden Robinson wrote: > > Basically, on hurd-i386, the Device should always be "/dev/mouse" and > > the Protocol be "osmouse". ZAxisMapping should not be set, > > Emulate3Buttons can be, depending on debconf. > Yes, this is one of the simpler parts of the problem space. Great. > What is the canonical way, from the shell, to determine that I am running > on a GNU/Hurd system? Hmm, dpkg-architecture is unfortunately only in dpkg-dev, so I guess uname is the best bet here. It prints out 'GNU' on GNU/Hurd as opposed to 'Linux' on GNU/Linux' and (so I've been told) e.g. 'GNU/kFreeBSD' on GNU/k*BSD. uname -a yields the following on my Debian GNU/Hurd box: GNU nighthawk.oase.mhn.de 0.3 GNUmach-1.3/Hurd-0.3 i386-AT386 GNU Would that suffice? Michael
Bug#259080: xserver-xfree86: Please special case mouse setup for GNU/Hurd
retitle 259080 xserver-xfree86: [debconf] please use special defaults for GNU/Hurd severity 259080 wishlist thanks On Tue, Jul 13, 2004 at 12:55:25AM +0200, Michael Banck wrote: > The configuration for GNU/Linux and GNU/Hurd is mostly identical, > however, there is a difference in how the mouse is setup. > > Basically, on hurd-i386, the Device should always be "/dev/mouse" and > the Protocol be "osmouse". ZAxisMapping should not be set, > Emulate3Buttons can be, depending on debconf. > > Unfortunately, I'm no debconf wizard, so I hope the changes are not > overly complex and could be done relatively easily. Yes, this is one of the simpler parts of the problem space. > It would be nice if X would run out-of-the-box on hurd-i386. Feel free to > ask questions, but please CC me. Will do. Oh yeah, I can think of one right away. What is the canonical way, from the shell, to determine that I am running on a GNU/Hurd system? -- G. Branden Robinson|It may be difficult to to determine Debian GNU/Linux |where religious beliefs end and [EMAIL PROTECTED] |mental illness begins. http://people.debian.org/~branden/ |-- Elaine Cassel signature.asc Description: Digital signature
Processed: Re: Bug#259080: xserver-xfree86: Please special case mouse setup for GNU/Hurd
Processing commands for [EMAIL PROTECTED]: > retitle 259080 xserver-xfree86: [debconf] please use special defaults for > GNU/Hurd Bug#259080: xserver-xfree86: Please special case mouse setup for GNU/Hurd Changed Bug title. > severity 259080 wishlist Bug#259080: xserver-xfree86: [debconf] please use special defaults for GNU/Hurd Severity set to `wishlist'. > thanks Stopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database)
Bug#259080: xserver-xfree86: Please special case mouse setup for GNU/Hurd
Package: xserver-xfree86 Version: 4.3.0.dfsg.1-5 Severity: wishlist Hello, The configuration for GNU/Linux and GNU/Hurd is mostly identical, however, there is a difference in how the mouse is setup. Basically, on hurd-i386, the Device should always be "/dev/mouse" and the Protocol be "osmouse". ZAxisMapping should not be set, Emulate3Buttons can be, depending on debconf. Unfortunately, I'm no debconf wizard, so I hope the changes are not overly complex and could be done relatively easily. It would be nice if X would run out-of-the-box on hurd-i386. Feel free to ask questions, but please CC me. thanks, Michael