KlipperScreen did not start after install #427
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Linux Distribution
debian
What happened
Installed klipperscreen via kiaut, install appears successful but it did not start
Now I can't seem to find the control to try and restart it
What did you expect to happen
klipperscreen starts
How to reproduce
Install klipperscreen via kiauth
Additional information
No response
Ran
systemctl list-unit-files --type service -all | grep -i scr
To find the name of the process
Then ran
systemctl start KlipperScreen
to start the process
Still does not appear to work
I restart the computer, nochange
Ran kiauth.sh again, this time did the update (it wasn't very old but I don't update unnecessarily because updates break things)
Removed klipperscreen
re-Installed klipperscreen
Still the error
Further investigating this today
I've completely wiped this computer with fresh debian 12 and re-installed Kiauth
So it seems the X server is not starting when run
Here's the journalctl -f
So the main error is
Here is the full xorg log
First I'm going to check the user and the script's permissions
So both KlipperScreen-start.sh and xinit run as user
and user has the permission to tty / dialout / video
Searching for "xf86OpenConsole: Cannot open virtual console 2 "
Leads to this reddit post about someone trying to install KlipperScreen
https://old.reddit.com/r/klippers/comments/uly2j6/cannot_open_virtual_console_2_and_any_commands_to/
They suggest running this command
Ok, doesn't help, next the consensus of that thread is to add
needs_root_rights=yesto
nano /etc/X11/Xwrapper.configAnd immediately after saving this file klipper starts
Yet again, not running as root was the cause of all the problems !!
Problem solved for me thanks
(Well, touchscreen's not working but that's going to be a separate issue !)
Further notes:
As for the touchscreen, it was a bad microusb cable.
There is a permission somewhere that is wrong, I don't know where but
needs_root_rights=yeswhich launches the x server as root
does fix it !
Can confirm. Have to do this every time when installing KlipperScreen on Ubuntu Server.
sudo bash -c "echo needs_root_rights=yes>>/etc/X11/Xwrapper.config"That needs to be added to the install script.
It looks like this issue has to be fixed by KlipperScreen. In case of KlipperScreen KIAUH is just executing KlipperScreens own install script: https://github.com/dw-0/kiauh/blob/master/scripts/klipperscreen.sh#L60
So please head over to the KlipperScreen repository and open an issue there, if there does not exist one already.