LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux
User Name
Password
4MLinux This forum is for the discussion of 4MLinux.

Notices


Reply
  Search this Thread
Old 05-04-2018, 02:06 PM   #1
kiebitz
LQ Newbie
 
Registered: Apr 2016
Posts: 24

Rep: Reputation: Disabled
Post 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
 
Old 05-04-2018, 02:54 PM   #2
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 810

Rep: Reputation: 149Reputation: 149
Hi,

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

.

Last edited by zk1234; 05-04-2018 at 02:57 PM.
 
Old 05-04-2018, 03:20 PM   #3
kiebitz
LQ Newbie
 
Registered: Apr 2016
Posts: 24

Original Poster
Rep: Reputation: Disabled
Not sure
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
 
Old 05-04-2018, 03:39 PM   #4
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 810

Rep: Reputation: 149Reputation: 149
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

.
 
Old 05-04-2018, 06:17 PM   #5
kiebitz
LQ Newbie
 
Registered: Apr 2016
Posts: 24

Original Poster
Rep: Reputation: Disabled
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.
 
Old 05-05-2018, 01:00 AM   #6
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 810

Rep: Reputation: 149Reputation: 149
Quote:
Originally Posted by kiebitz View Post
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.

.
 
Old 05-05-2018, 07:54 AM   #7
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 810

Rep: Reputation: 149Reputation: 149
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)

.
 
Old 05-07-2018, 04:42 PM   #8
kiebitz
LQ Newbie
 
Registered: Apr 2016
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zk1234 View Post
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
 
Old 05-07-2018, 04:49 PM   #9
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 810

Rep: Reputation: 149Reputation: 149
You're (as always) welcome!

 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
halt, reboot, poweroff, everybody! Jerry Mcguire Linux - General 5 10-18-2010 09:15 AM
reboot/poweroff how? demmylls Linux - General 2 08-13-2009 09:52 AM
Panic; reboot/poweroff; 2.4.33.3 Tralce Linux - Kernel 0 12-04-2006 02:54 PM
reboot vs poweroff??? bigdog0007 Linux - Newbie 4 09-16-2005 02:48 AM
family access to command poweroff & reboot pixelV Slackware 12 02-27-2003 03:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration