LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-13-2005, 11:58 PM   #1
Danus ex
LQ Newbie
 
Registered: Oct 2004
Location: Ramsey, Minnesota
Distribution: Slackware 10.1
Posts: 16

Rep: Reputation: 0
did a slackware-current update nuke .Xmodmap for anyone else?


Hey,

Just installed the September 8th, 10th, and 12th updates from slackware-current and seem to have lost the functionality provided by my /etc/X11/xinit/.Xmodmap file (the 'pointer = 1 2 3 6 7 4 5' thing). Happens in any window manager. Now my wheel and back/forth buttons are screwed up. Anyone else get the same problem?
 
Old 09-14-2005, 12:22 PM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Have you read ftp://ftp.slackware.com/pub/slackwar...nt/UPGRADE.TXT ?
Quote:
Before you begin, I would strongly recommend making a backup of your
system, or, if not the entire system, at least the /etc directory. You
might find that you need to refer to a few things about the upgrade
process is complete. Back it up, or take your chances.
and
Quote:
6. Fix your config files. Some of the config files in /etc are going to
need your attention. You'll find the new incoming config files on
your system with the ".new" extension. You may need to fill these in
with information from your old config files and then move them over.

Feel brave? You can use this little script to install all of the
.new config files in /etc. If you've made any local changes you'll
need to add them to the newly installed files. Your old config files
will be copied to *.bak. Anyway, it might be an easier starting
point. Here it is:

#!/bin/sh
cd /etc
find . -name "*.new" | while read configfile ; do
if [ ! "$configfile" = "./rc.d/rc.inet1.conf.new" \
-a ! "$configfile" = "./group.new" \
-a ! "$configfile" = "./passwd.new" \
-a ! "$configfile" = "./shadow.new" ]; then
cp -a $(echo $configfile | rev | cut -f 2- -d . | rev) \
$(echo $configfile | rev | cut -f 2- -d . | rev).bak 2> /dev/null
mv $configfile $(echo $configfile | rev | cut -f 2- -d . | rev)
fi
done

You'll probably also need to edit your /etc/X11/xorg.conf to change
the name of the keyboard driver from "Keyboard" to "kbd". I don't
know why this changed, but it did.
Could this be the problem? Read that entire file, which should be
located wherever you saved your -current download.
 
Old 09-14-2005, 06:25 PM   #3
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 34
I had the same problem, although I log in at runlevel 4 using KDM and IIRC it was caused by the latest kdebase upgrade. I reverted /opt/kde/share/config/kdm/Xsession to a previous version of the file and it started reading .Xmodmap again.
 
Old 09-14-2005, 09:16 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
If this is indeed a bug, I know Patrick would appreciate you
sending him a report. He's about to release Slackware-10.2
and it would be nice to get that fixed beforehand.
 
Old 09-15-2005, 03:30 AM   #5
Slinky
Member
 
Registered: Mar 2004
Location: Fens UK
Distribution: Debian etch
Posts: 46

Rep: Reputation: 15
Hi i have this same problem (although i have only just realised it might not be me, as have done two fresh installs and around 6 kernel recompiles to try and fix it) I am a newbie and have not got a clue how to fix this. any help would be most welcome!
 
Old 09-15-2005, 06:38 AM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
It is not so much a bug, as the KDE files are now unmodified, whereas in earlier versions Pat had put in his own versions of Xsession.

And btw ... Slackware-10.2 has been released.
 
Old 09-15-2005, 07:53 AM   #7
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 34
The easiest solution would be to create /etc/xprofile (or ~/.xprofile for individual users is you want), and in it put these lines from the original /opt/kde/share/config/kdm/Xsession:

Code:
# /etc/xprofile: This file contains system-wide defaults used by X

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -r $sysresources ]; then
        xrdb -merge $sysresources
fi

if [ -r $sysmodmap ]; then
        xmodmap $sysmodmap
fi

if [ -r $userresources ]; then
        xrdb -merge $userresources
fi

if [ -r $usermodmap ]; then
        xmodmap $usermodmap
fi
 
Old 09-15-2005, 08:44 AM   #8
Slinky
Member
 
Registered: Mar 2004
Location: Fens UK
Distribution: Debian etch
Posts: 46

Rep: Reputation: 15
thankyou for your reply, i will when i get back from work tonight. Hopefully that will sort it if not "i will be back"

thankyou for your time.
 
Old 09-15-2005, 01:12 PM   #9
Slinky
Member
 
Registered: Mar 2004
Location: Fens UK
Distribution: Debian etch
Posts: 46

Rep: Reputation: 15
No joy as i dont have any of these files? (sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap)

anymore help would be most welcome!
 
Old 09-15-2005, 05:49 PM   #10
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 34
Well, can you elaborate on what you mean by "the same problem"? You refer to two fresh installs and 6 kernel recompiles, whereas the original poster refers to a simple problem with the kdebase upgrade regarding their .Xmodmap file?

Essentially:

1) What *exactly* is the problem you are having?
1B) What hardware is involved, if any (i.e. are you saying the scroll wheel on your mouse doesn't work? What kind of mouse is it?)

2) What have you done so far to try and cure it?
(e.g. editing /etc/X11/xorg.conf, custom .Xmodmap, etc)
 
Old 09-15-2005, 06:24 PM   #11
Slinky
Member
 
Registered: Mar 2004
Location: Fens UK
Distribution: Debian etch
Posts: 46

Rep: Reputation: 15
Hi sorry for not being very clear on my first post. Yes the problem is with my scroll wheel mouse the wheel does not work at all. I have done about everything i could dig up have done mouseconfig, edited xorg.conf with ZAxisMapping Buttons ect recompliled the kernel to include all mouse options and vice versa. have taken the above steps also. have really tried all sorts to no avail. the mouse is one that came with this pc dell 4600 its an optical usb one. Hope this makes it a bit clearer.

many thanks
 
Old 09-15-2005, 06:35 PM   #12
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 34
For future reference, your PC appears to be a Dimenson 4600 (There's also a server called the PowerEdge 4600, so just making sure).

The links from that page takes me to this for the USB Optical Mouse.

If I'm right, it classes as a five button mouse (left + right, wheel = up, down, click) you shouldn't need to start fiddling with .Xmodmap (unless I'm wrong, and you have two side buttons or more).

Can you please post the mouse section from your /etc/X11/xorg.conf?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
After slackpkg update(all current p'kges), Slackware 10 stops loading (black screen). SlawioG Slackware 3 11-28-2004 10:19 AM
Xorg broke after update to current coffeedemon Slackware 1 11-10-2004 01:07 PM
When Ever I Update to Current FXRS Slackware 5 04-19-2004 03:13 AM
Cant eject cdrom after slackware-current update windsok Slackware 3 09-19-2003 06:30 AM
How To Update To Slackware-Current For a Newbie, By a Newbie :) windsok Slackware 1 09-18-2003 09:53 PM


All times are GMT -5. The time now is 07:44 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration