LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-02-2023, 06:07 PM   #16
Panthan
LQ Newbie
 
Registered: Jan 2021
Location: USA
Distribution: Slackware 15.0
Posts: 17

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by BW-userx View Post
yeah that / this issue I have not had since v14 permission denied and that was so long ago I cannot remember the file I removed one line on then it bypassed the root thing
Yes, I was hoping that the problem would have been seen before and somebody could say "check the existence/permissions on <file>", but it was only a hope. Or maybe "that's handled by <package>, try re-installing that one." But no joy.


Quote:
Originally Posted by BW-userx View Post
might be faster to try installing again then fiddling around .
thing
That's what I'm thinking. I did try re-installing all the xorg-server packages, and that did not help. So, to hell with it. Unless I get some clever suggestions in the next twelve hours, that's how I'll start my workday tomorrow.
 
Old 07-02-2023, 08:42 PM   #17
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Panthan View Post
Yes, I was hoping that the problem would have been seen before and somebody could say "check the existence/permissions on <file>", but it was only a hope. Or maybe "that's handled by <package>, try re-installing that one." But no joy.




That's what I'm thinking. I did try re-installing all the xorg-server packages, and that did not help. So, to hell with it. Unless I get some clever suggestions in the next twelve hours, that's how I'll start my workday tomorrow.
Sometimes that's the best fix, I'd separate the root with the home. This way if for any reason you find yourself reinstalling again everything in home is kept safe. All you need to do is reattach it during install.
 
Old 07-03-2023, 06:53 AM   #18
Panthan
LQ Newbie
 
Registered: Jan 2021
Location: USA
Distribution: Slackware 15.0
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
Sometimes that's the best fix, I'd separate the root with the home. This way if for any reason you find yourself reinstalling again everything in home is kept safe. All you need to do is reattach it during install.
I've kept root on its own partition for many years, so that upgrading to a new Slackware release wouldn't hose the system. I am tempted to swap in a new hard drive and start from scratch, but I don't feel like disassembling the laptop to do it. I miss the old ThinkPads where it was a single screw in a slot on the side to change the drive.

I'll back up the important directories to an external disk, copy the /etc directory, and do the re-install today. Annoying, but it's the option I have left.

I wish I knew what caused the problem, though.
 
Old 07-03-2023, 02:57 PM   #19
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware Current 64-bit
Posts: 543

Rep: Reputation: 178Reputation: 178
What about running "slackpgg update && slackpkg install-new && slackpkg upgrade-all" again and see if that resolves the issue?
 
Old 07-03-2023, 05:43 PM   #20
tmmukunn
Member
 
Registered: Nov 2007
Distribution: Slackware
Posts: 43

Rep: Reputation: 9
if you ran setxkbmap us -print

does that bomb out?

I get this
bash-5.1$ setxkbmap us -print
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us+inet(evdev)+terminate(ctrl_alt_bksp)" };
xkb_geometry { include "pc(pc105)" };
};
 
Old 07-04-2023, 07:00 AM   #21
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Panthan View Post
I've kept root on its own partition for many years, so that upgrading to a new Slackware release wouldn't hose the system. I am tempted to swap in a new hard drive and start from scratch, but I don't feel like disassembling the laptop to do it. I miss the old ThinkPads where it was a single screw in a slot on the side to change the drive.

I'll back up the important directories to an external disk, copy the /etc directory, and do the re-install today. Annoying, but it's the option I have left.

I wish I knew what caused the problem, though.
yeah I seen those hot swaps where the hdd was on the side and all one had to do was pull it then slap another one in. then HP use to have a slide lock now they're doing 6 to 8 screws.

you do actually go through the steps to set up the keyboard and make sure it is working? a new hard drive is just a new hard drive that won't make a difference as far as compatibility with this issue.

do just take it slow and don't do the just hit the enter key to get to the next step install process. that might help catch something

have you tried a live slack iso to see if that works fine on the laptop? it is said that you can install / copy the system off of that too.
 
Old 07-07-2023, 02:44 PM   #22
Panthan
LQ Newbie
 
Registered: Jan 2021
Location: USA
Distribution: Slackware 15.0
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
you do actually go through the steps to set up the keyboard and make sure it is working? a new hard drive is just a new hard drive that won't make a difference as far as compatibility with this issue.

do just take it slow and don't do the just hit the enter key to get to the next step install process. that might help catch something

have you tried a live slack iso to see if that works fine on the laptop? it is said that you can install / copy the system off of that too.
I did a fresh install, exactly as I did when I installed 15.0 the first time (I take pretty complete notes when I do an install), and the problem remains.

I haven't tried liveslak. I tried to boot Knoppix, and it won't boot the dvd (though it had no trouble booting from the slackware install disc when I did the re-install). So, I have no idea. I'll try liveslak. Can't hurt to try.

I have owned this laptop (it's a Thinkpad w550s) since 2016. I ran Slackware 14.2 on it until last February, when I took out the old disk and put in a new one for slackware 15.0. Swapping out a disk should make no difference, but at this point, I'm desperate enough to try.
 
Old 07-07-2023, 03:21 PM   #23
Panthan
LQ Newbie
 
Registered: Jan 2021
Location: USA
Distribution: Slackware 15.0
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by tmmukunn View Post
if you ran setxkbmap us -print

does that bomb out?

I get this
bash-5.1$ setxkbmap us -print
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us+inet(evdev)+terminate(ctrl_alt_bksp)" };
xkb_geometry { include "pc(pc105)" };
};
I can only run setxkbmap if X is running, and I can't get X to run as regular user. If I run it without X, I get 'cannot open display "default display"'. If I run it as root with X running, I get output like what you list.
 
Old 07-07-2023, 03:37 PM   #24
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Panthan View Post
I did a fresh install, exactly as I did when I installed 15.0 the first time (I take pretty complete notes when I do an install), and the problem remains.

I haven't tried liveslak. I tried to boot Knoppix, and it won't boot the dvd (though it had no trouble booting from the slackware install disc when I did the re-install). So, I have no idea. I'll try liveslak. Can't hurt to try.

I have owned this laptop (it's a Thinkpad w550s) since 2016. I ran Slackware 14.2 on it until last February, when I took out the old disk and put in a new one for slackware 15.0. Swapping out a disk should make no difference, but at this point, I'm desperate enough to try.
it's been years but try this. Open startx and edit it

sudo nano /usr/bin/startx

then comment out this line enable_xauth=1 , or change it to enable_xauth=0

save then try startx

question: i keep seeing keyboard is it the keyboard that is not working or startx don't give you a gui?

Last edited by BW-userx; 07-07-2023 at 03:50 PM.
 
Old 07-08-2023, 01:25 PM   #25
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,230

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
Have you tried to startx and log the output to a file ?
Sometimes its easier to do it as followis:

$ startx > mystartx.log 2>&1

The take a look there it should be written whats not liking.
 
Old 07-08-2023, 02:38 PM   #26
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 806

Rep: Reputation: 258Reputation: 258Reputation: 258
Did you add something about xkeyboard in your config files? Do you have /etc/X11/xorg.conf.d/20-xkmap.conf, or maybe an Xorg.conf with a mention of xkeyboard in it because I do not. I don't have an Xorg.conf. I don't get any errors about xkeyboard on startup, and I've never even seen a file from xkeyboard in /tmp. If reinstalling binaries is not fixing the problem, then that must not be it. I'm guessing you have a bad config file someplace. The server tries to write out a keymap, but can only do so under root.

Just in case, check the usual permission problem areas:
Code:
ls /etc/X11/xorg.conf.d/
10-libvnc.conf  30-dualshock-4-touchpad.conf  51-joystick.conf


ls -la /tmp/.ICE-unix/
total 24
drwxrwxrwt  2 root root  4096 May 19 12:36 ./
drwxrwxrwt 30 root root 20480 Jul  8 14:01 ../
srwxrwxrwx  1 root root     0 May 19 12:36 1791=

ls -la /tmp/.X11-unix/
total 24
drwxrwxrwt  2 root root   4096 Jul  8 13:13 ./
drwxrwxrwt 30 root root  20480 Jul  8 14:01 ../
srwxrwxrwx  1 root users     0 Jul  8 13:13 X0=

ls -la /usr/libexec/Xor*
-rwsr-xr-x 1 root root 2325120 Mar 29 14:01 /usr/libexec/Xorg*
-rwsr-xr-x 1 root root   14544 Mar 29 14:01 /usr/libexec/Xorg.wrap*
Startup log snippet:
Code:
[224863.061] (II) event1  - Power Button: device is a keyboard
[224863.061] (II) event1  - Power Button: device removed
[224863.078] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1/event1"
[224863.078] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[224863.078] (**) Option "xkb_layout" "us"
[224863.078] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[224863.099] (II) event1  - Power Button: is tagged by udev as: Keyboard
[224863.099] (II) event1  - Power Button: device is a keyboard
[224863.100] (II) config/udev: Adding input device Power Button (/dev/input/event0)
[224863.100] (**) Power Button: Applying InputClass "evdev keyboard catchall"
I use "startx" when I want X11, and set which window manager I like via ~/.xinitrc.

Code:
cat ~/.xinitrc
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/Xresources
sysmodmap=/etc/X11/xinit/Xmodmap

# merge in defaults and keymaps

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

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

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

if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi

# Start the window manager or desktop environment
xsetroot -def

# Edit graphics tablet button function to add ctrl-z
xsetwacom set "Wacom Intuos S Pad pad" "Button" "1" "key ctrl z"

# Emotif
manager=/usr/bin/emwm

# Motif
#manager=/usr/bin/mwm

# WindowMaker
#manager=/usr/bin/wmaker

if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
  ck-launch-session $manager
else

  dbus-launch --exit-with-session $manager
fi
Go through X11 startup piece by piece; execute startx line by line and see where, exactly, it bombs out.
 
Old 07-08-2023, 04:40 PM   #27
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by jayjwa View Post
Did you add something about xkeyboard in your config files? Do you have /etc/X11/xorg.conf.d/20-xkmap.conf, or maybe an Xorg.conf with a mention of xkeyboard in it because I do not. I don't have an Xorg.conf. I don't get any errors about xkeyboard on startup, and I've never even seen a file from xkeyboard in /tmp. If reinstalling binaries is not fixing the problem, then that must not be it. I'm guessing you have a bad config file someplace. The server tries to write out a keymap, but can only do so under root.

Just in case, check the usual permission problem areas:
Code:
ls /etc/X11/xorg.conf.d/
10-libvnc.conf  30-dualshock-4-touchpad.conf  51-joystick.conf


ls -la /tmp/.ICE-unix/
total 24
drwxrwxrwt  2 root root  4096 May 19 12:36 ./
drwxrwxrwt 30 root root 20480 Jul  8 14:01 ../
srwxrwxrwx  1 root root     0 May 19 12:36 1791=

ls -la /tmp/.X11-unix/
total 24
drwxrwxrwt  2 root root   4096 Jul  8 13:13 ./
drwxrwxrwt 30 root root  20480 Jul  8 14:01 ../
srwxrwxrwx  1 root users     0 Jul  8 13:13 X0=

ls -la /usr/libexec/Xor*
-rwsr-xr-x 1 root root 2325120 Mar 29 14:01 /usr/libexec/Xorg*
-rwsr-xr-x 1 root root   14544 Mar 29 14:01 /usr/libexec/Xorg.wrap*
Startup log snippet:
Code:
[224863.061] (II) event1  - Power Button: device is a keyboard
[224863.061] (II) event1  - Power Button: device removed
[224863.078] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1/event1"
[224863.078] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[224863.078] (**) Option "xkb_layout" "us"
[224863.078] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[224863.099] (II) event1  - Power Button: is tagged by udev as: Keyboard
[224863.099] (II) event1  - Power Button: device is a keyboard
[224863.100] (II) config/udev: Adding input device Power Button (/dev/input/event0)
[224863.100] (**) Power Button: Applying InputClass "evdev keyboard catchall"
I use "startx" when I want X11, and set which window manager I like via ~/.xinitrc.

Code:
cat ~/.xinitrc
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/Xresources
sysmodmap=/etc/X11/xinit/Xmodmap

# merge in defaults and keymaps

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

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

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

if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi

# Start the window manager or desktop environment
xsetroot -def

# Edit graphics tablet button function to add ctrl-z
xsetwacom set "Wacom Intuos S Pad pad" "Button" "1" "key ctrl z"

# Emotif
manager=/usr/bin/emwm

# Motif
#manager=/usr/bin/mwm

# WindowMaker
#manager=/usr/bin/wmaker

if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
  ck-launch-session $manager
else

  dbus-launch --exit-with-session $manager
fi
Go through X11 startup piece by piece; execute startx line by line and see where, exactly, it bombs out.
Just for the fun of it try startxfce4

Last edited by BW-userx; 07-08-2023 at 04:42 PM.
 
Old 07-09-2023, 08:36 AM   #28
tmmukunn
Member
 
Registered: Nov 2007
Distribution: Slackware
Posts: 43

Rep: Reputation: 9
Quote:
Originally Posted by Panthan View Post
I did a fresh install, exactly as I did when I installed 15.0 the first time (I take pretty complete notes when I do an install), and the problem remains.
For your fresh install, I presume you didn't do slackpkg update/upgrade-all so that you stayed with the packages when slackware 15.0 was first released?

Also, did you maintain your home directory (prior to fresh install) and re-attach?

Have you tried with a different user other than the problem user or root? I apologize if you mentioned that earlier and I missed that.
 
Old 07-09-2023, 09:04 AM   #29
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by tmmukunn View Post
For your fresh install, I presume you didn't do slackpkg update/upgrade-all so that you stayed with the packages when slackware 15.0 was first released?

Also, did you maintain your home directory (prior to fresh install) and re-attach?

Have you tried with a different user other than the problem user or root? I apologize if you mentioned that earlier and I missed that.
https://docs.slackware.com/slackware:beginners_guide

That's actually a good point. Post install things to do. One does not necessarily have to do all of them. Just the ones that pertain.
 
Old 07-27-2023, 03:11 PM   #30
SW64
Member
 
Registered: May 2014
Distribution: Slackware
Posts: 262

Rep: Reputation: 123Reputation: 123
Maybe too late for Panthan but posting for others in future.

After a power outage had bumped off my computer, after booting it back on, I had exactly the same problem as Panthan's first post with the same error as posted. I tried a few things that didn't worked. Searched for solutions online and found this thread. I tried almost all of the solutions offered in replies with the same results as Panthan's reports. Everything looked right. I was on the verge of reformatting the root partition when I vaguely remembered something else. I have my /tmp on its own partition (to stop it from growing too much and killing off root partition) and I checked to see if it was full. It was 100% full. Nothing could be written to it. Emptying /tmp gave me back my desktop.

Hope this helps someone else. Thanks for this thread!
 
3 members found this post helpful.
  


Reply

Tags
fails to start, x server, xkb



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
[SOLVED] Can't start blueman-applet as a regular user in Slackware64-14.2 - permissions issue? arcctgx Slackware 3 08-11-2019 02:27 PM
[SOLVED] NFS subdirectory - regular user can read - root user denied qajaq Linux - Software 2 12-29-2016 12:59 PM
[SOLVED] how to change "-bash-4.1$ "to regular user mood user user@ mhsahkir Linux - Newbie 6 03-31-2015 12:39 PM
Can't start Tint2 as regular user spoovy Slackware 2 08-12-2010 04:36 PM
MonoDevelop won't start as regular user nagromo Linux - Software 2 05-25-2005 01:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:14 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration