LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   4MLinux (https://www.linuxquestions.org/questions/4mlinux-115/)
-   -   Poweroff & Reboot buttons do nothing (https://www.linuxquestions.org/questions/4mlinux-115/poweroff-and-reboot-buttons-do-nothing-4175629041/)

kiebitz 05-04-2018 02:06 PM

Poweroff & Reboot buttons do nothing
 
The 4M versions I used previously had no poweroff function, instead I just hold the physical button. ( https://www.linuxquestions.org/quest...ly-4175563821/ )

Now on 4MLinux v4.14.25-smp on i686 there are "Poweroff" and "Reboot" entries in the startmenu. Clicking them brings up a dialog:
"Poweroff? [yes] [no]"
...and then nothing happens.

Entering into terminal "poweroff" or "reboot" does not have any effect either. (just goes to new line, no error messages or such)

/etc/acpi/acpid.cfg looks like this:
Quote:

#Default action when PowerOff button is pressed:
BUTTON=poweroff

#Default action when laptop lid is closed:
LID=poweroff

zk1234 05-04-2018 02:54 PM

Hi,

I guess, you have "hacked" 4MLinux by adding the startx command to its autostart script. Is that so ?

.

kiebitz 05-04-2018 03:20 PM

Not sure :scratch:
I think with a previous install I did that.
Following the instruction of this post: https://www.linuxquestions.org/quest...4/#post5416695
But now when installing the newer version, I do not remember doing that. But maybe I did it?

Anyway, the etc/init.d/autostart.sh looks this:
Quote:

cupsd 2>/dev/null
modprobe loop 2>/dev/null
mount -a 2>/dev/null &
/usr/share/server/autostart.sh 2>/dev/null &
startx

zk1234 05-04-2018 03:39 PM

Either remove the startx command from the autostart script (to restore the default 4MLinux settings), or you have to use the following two-step poweroff (or reboot):

POWEROFF
1) Menu > PowerOff
2) Menu > ExitJWM

REBOOT:
1) Menu > Reboot
2) Menu > ExitJWM

.

kiebitz 05-04-2018 06:17 PM

Hm, that works but is there no other way?
I have set up the laptops of my mother (and some other people) with 4M because it works good on those old machines and is easy to use for them. But having to click two things or 'type cryptic things' just to turn the computer on or off is makes it more complicated.

zk1234 05-05-2018 01:00 AM

Quote:

Originally Posted by kiebitz (Post 5850856)
Hm, that works but is there no other way?
I have set up the laptops of my mother (and some other people) with 4M because it works good on those old machines and is easy to use for them. But having to click two things or 'type cryptic things' just to turn the computer on or off is makes it more complicated.

Try to replace "startx" with "startx &" in the /etc/init.d/autostart.sh file.

.

zk1234 05-05-2018 07:54 AM

You're not the first person who dislikes the necessity to execute the startx command, so...

Starting from June 2018, all new 4MLinux releases will include the following /etc/startx.conf file:
Code:

# Start X during the boot:
STARTX=yes

# Require password:
PASSWD=yes

STARTX=yes --> JWM started automatically by 4MLinux
STARTX=no --> JWM not started automatically (you must execute "startx")
PASSWD=yes --> password required by 4MLinux (login screen enabled)
PASSWD=no --> password not required by 4MLinux (login screen disabled)

.

kiebitz 05-07-2018 04:42 PM

Quote:

Originally Posted by zk1234 (Post 5850929)
Try to replace "startx" with "startx &" in the /etc/init.d/autostart.sh file.

.

Thanks, that works perfect.
Yes, I think in 2018 a graphical desktop is expected by most users as default, not a command line :)

zk1234 05-07-2018 04:49 PM

You're (as always) welcome!

:hattip:


All times are GMT -5. The time now is 08:00 PM.