vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi NG In order to be able to use my mouse wheel, I am required to run this command: xmodmap -e "pointer = 1 2 3 6 7 4 5" And have currently put this line in my /etc/rc.d/rc.local file, so that it would be executed during startup, so I wouldn't need to run it manually every time I boot (boot it every day), but when the command is executed during startup, I get this reply: xmodmap: unable to open display '' Or "Can't connect to X server". Does anyone know a way out of this problem ? If so, I am very greatful! Kind regards, Mads |
| |||
| Mads Jensen wrote: > And have currently put this line in my /etc/rc.d/rc.local file, so that it > would be executed during startup, so I wouldn't need to run it manually > every time I boot (boot it every day), but when the command is executed > during startup, I get this reply: > > xmodmap:**unable*to*open*display*'' The X display does not yet exist when rc.local is executed. Try putting the xmodmap command in /etc/X11/xinit/xinitrc, or ~/.xinitrc, or ~/.xsession (depending on how you start X) instead of rc.local. This way, the command will run when X starts, and the "display" will exist. Jeffrey |
| |||
| On Wednesday 08 September 2004 05:38 am, Mads Jensen did deign to grace us with the following: > Hi NG > > In order to be able to use my mouse wheel, I am required to run this > command: > > xmodmap -e "pointer = 1 2 3 6 7 4 5" > > And have currently put this line in my /etc/rc.d/rc.local file, so that it > would be executed during startup, so I wouldn't need to run it manually > every time I boot (boot it every day), but when the command is executed > during startup, I get this reply: > > xmodmap: unable to open display '' > > Or "Can't connect to X server". > > Does anyone know a way out of this problem ? If so, I am very greatful! > What happens if, instead of that line, you put the appropriate lines in your xorg.conf? The only reason I ask is that I spot the '4' and '5' in your thingie - (BTW, I haven't looked up xmodmap yet, because I haven't had to), which immediately pops up "ZAxisMapping" in my mind, and you did mention 'wheel' - the math really isn't that hard. Good Luck! Rich |
| |||
| Mads Jensen <madsj@spambot.raptus.dk> schrieb: > Hi NG > > In order to be able to use my mouse wheel, I am required to run this > command: > > xmodmap -e "pointer = 1 2 3 6 7 4 5" > > And have currently put this line in my /etc/rc.d/rc.local file, so that it > would be executed during startup, so I wouldn't need to run it manually > every time I boot (boot it every day), but when the command is executed > during startup, I get this reply: > > xmodmap: unable to open display '' > > Or "Can't connect to X server". Take a look at some of the "official" ~/.xinitrc's (those created by xwmconfig). The Right Way[tm] is to use 11/xinit/.Xmodmap for global settings and ~/.Xmodmap for user specific settings. Mine looks like this: kb@clockwork:~$ cat ~/.Xmodmap pointer = 1 2 3 6 7 4 5 HTH |
| ||||
| Rich Grise <null@example.net> wrote: > On Wednesday 08 September 2004 05:38 am, Mads Jensen did deign to grace us > with the following: [...] > > xmodmap -e "pointer = 1 2 3 6 7 4 5" [...] > What happens if, instead of that line, you put the appropriate lines > in your xorg.conf? The only reason I ask is that I spot the '4' and '5' > in your thingie - (BTW, I haven't looked up xmodmap yet, because I > haven't had to), which immediately pops up "ZAxisMapping" in my mind, > and you did mention 'wheel' - the math really isn't that hard. It's for people with a 7-button-mouse who want to use the wheel *and* the thumb buttons (which is usefull for browsing forward/backward with mozilla, gaming, ...) |