LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 06-27-2016, 03:12 AM   #1
Aksem
LQ Newbie
 
Registered: Jun 2016
Distribution: OpenSUSE
Posts: 9

Rep: Reputation: Disabled
Question APM and ACPI problems on Samsung R518


Hi. I have Samsung R518( Intel Pentium Dual Core T4200 + Intel GM45 Express ). I changed hdd with ssd and installed Linux(OpenSUSE Tumbleweed Linux 4.6.2 ). But there are some problem with acpi and apm:
1.Fn buttons works only with acpi_backlight=vendor parameter.
2. Laptop works normal only with enabled charging. If i try disconnect it, laptop not responding(I/O errors and hdd 100% load).
After that i tried 'acpi=off apm=off' boot parameters. With them laptop works good(even without charging) but resolution is 1024x768(should be 1366x768).
I tried different combinations of parameters ( https://wiki.ubuntu.com/DebuggingACPI ), but any of them didn't help me.
 
Old 06-28-2016, 01:51 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
You've left us short on details but I gather the PC is a bit dated.


APM was abandoned and ACPI developed because APM didn't work. Disable APM unless you really need it. ACPI links events to scripts (in /etc/acpi/). Run acpid with '-l' and run 'tail -f' on syslog and you should see acpi events logged as the box notices them. You can link working ones to scripts that you hack, cripple or cobble together to work. Don't forget about the power manager in every major window manager. That can be useful, or possibly duplicate the work of ACPI.
 
Old 07-03-2016, 05:07 AM   #3
Aksem
LQ Newbie
 
Registered: Jun 2016
Distribution: OpenSUSE
Posts: 9

Original Poster
Rep: Reputation: Disabled
I disabled apm(now kernel parameters is only 'apm=off acpi_backlight=vendor') and Plasma power manager(powerdevil). After that I tried again different parameters for acpi, but any effect.
In /etc/acpi/ is only thinkpad-radiosw.sh . Also I tried to find errors in system log( http://paste.opensuse.org/32107408) , but i didn't find any.
 
Old 07-04-2016, 12:31 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
it works like this: stop acpi & immediately run a
Code:
sudo acpid -l
In a second terminal run
Code:
tail -,f  /var/log/messages
Then operate the lid button, for example & see if it's noted in the log. Note the name exactly (e.g. Lidbtn) because you need that for the event. Then take an event that looks close and hack it for your box. Point the event to a script, and tweak the script to run and do it's thing for you. Google will be of great use here. Repeat for other events/actions

Other things to do might be to look your machine up on linux-laptop.net and read up how others managed with it.
 
Old 07-17-2016, 03:46 PM   #5
Aksem
LQ Newbie
 
Registered: Jun 2016
Distribution: OpenSUSE
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
it works like this: stop acpi & immediately run a
Code:
sudo acpid -l
But how should I stop acpi?(I know only one way, as boot parameter. But with acpi=off system doesn't even start).

On linux-laptop.net I haven't found this laptop model.

Last edited by Aksem; 07-17-2016 at 06:38 PM.
 
Old 07-18-2016, 02:07 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
To stop ACPI:
Code:
sudo skill -9 acpid
 
Old 07-18-2016, 02:39 AM   #7
Aksem
LQ Newbie
 
Registered: Jun 2016
Distribution: OpenSUSE
Posts: 9

Original Poster
Rep: Reputation: Disabled
Code:
user@linux-xu6r:~> tail -f  /var/log/messages
tail: cannot open '/var/log/messages' for reading: No such file or directory
tail: no files remaining
When I tried monitor logs with journalctl, I found this lines(after operating the lid button):
Code:
лип 18 10:30:11 linux-xu6r acpid[14398]: received input layer event "button/lid LID open"
лип 18 10:30:11 linux-xu6r systemd-logind[903]: Lid opened.
лип 18 10:30:11 linux-xu6r acpid[14398]: 0 total rules matched
лип 18 10:30:11 linux-xu6r systemd[1535]: Time has been changed
лип 18 10:30:11 linux-xu6r acpid[14398]: completed input layer event "button/lid LID open"
 
Old 07-19-2016, 01:17 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Sorry, that is pkill and not skill. This mailer auto MIScorrects spellings and if I don't spot and uncorrect it, the wrong thing goes out.

Your lid button event was registered but there's no rules using it. an entry in /etc/acpi/events should point at a script in /etc/acpi that tells the box what to do. That's how acpi works. You need the event name found in the log in the "events" entry and it all takes off from there.

Last edited by business_kid; 07-19-2016 at 01:18 AM.
 
Old 07-24-2016, 03:47 AM   #9
Aksem
LQ Newbie
 
Registered: Jun 2016
Distribution: OpenSUSE
Posts: 9

Original Poster
Rep: Reputation: Disabled
What I tried to do:
1. Load system.
2.
Code:
sudo pkill -9 acpid
3.
Code:
sudo acpid -l
4. Close, wait for sleep and open a laptop.
4.
Code:
sudo journalctl -b
Logs: http://paste.opensuse.org/2298213
Sorry, but I can't find event names.
 
Old 07-25-2016, 12:42 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I'm trying to read this without the use of my paralysed arm, so there's no way I can make sense of a paste that long.. Let the PC do it.
Code:
cat /path/to/log |grep -ie 'event' -e 'registered'


if that shows nothing, it's not seeing events. Clearing the log of past events makes this much handier.

EDIT: journal to seemed to work with your box and found events. If suspend or hibernate works, something is doing acpid. It may be systems.

Last edited by business_kid; 07-25-2016 at 12:47 AM.
 
Old 09-04-2016, 03:59 AM   #11
Aksem
LQ Newbie
 
Registered: Jun 2016
Distribution: OpenSUSE
Posts: 9

Original Poster
Rep: Reputation: Disabled
If suspend works(systems acpid?) and I have in logs such message '04 10:54:22 linux-xu6r kernel: ACPI : EC: 1 stale EC events cleared', can I disable this system ACPI?
 
Old 09-05-2016, 12:53 AM   #12
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Yes, just stop acpid. But you stop cooling the CPU so you can't run like that! acpid links events to scripts and the solution is to tweak them for your box usually.
 
Old 09-05-2016, 12:19 PM   #13
Aksem
LQ Newbie
 
Registered: Jun 2016
Distribution: OpenSUSE
Posts: 9

Original Poster
Rep: Reputation: Disabled
But what I should doing, if I can't names of events get? Or I do something incorrect?
 
Old 09-06-2016, 01:16 AM   #14
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
To get names of events, do the following
    • As root, kill acpid and restart it as acpid -l. That logs events to syslog.
    • In a terminal, run ' tail -f /var/log/messages' or whatever the main log file is.
    • Cause ACPI events and see what is logged. Try to suspend, block ventilation briefly to see if the fan charges speed, etc.
    • You can always look in /etc/acpi/events to see the events it is looking for
 
Old 09-06-2016, 03:07 AM   #15
Aksem
LQ Newbie
 
Registered: Jun 2016
Distribution: OpenSUSE
Posts: 9

Original Poster
Rep: Reputation: Disabled
I tried to use acpi_listen and I've got some logs:
Code:
ac_adapter ACPI003:00 00000080 00000000
battery PNP0C0A:00 00000080 00000001
It's events names, yes?
Then my laptop again didn't respond.
But in /etc/acpi/events is only thinkpad file with those content:
Code:
# forward acpi events to the thinkpad handler (bluetooth etc.)

event=ibm/.*
action=/usr/lib/acpid/thinkpad_handler "%e"
Can I now create empty action for ac_adapter event or change standard for example?

Last edited by Aksem; 09-06-2016 at 03:10 AM.
 
  


Reply



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
power consumption: acpi vs apm ---> apm is the winner by far for suspend mode bmpro Linux - Laptop and Netbook 2 10-01-2008 09:16 PM
ACPI vs APM ptawe Debian 1 02-21-2006 01:58 PM
Acer Ferrari freezes (apm and/or acpi problems?) nfisk Linux - Laptop and Netbook 2 03-23-2005 07:05 AM
apm vs. acpi ? (modprobe: FATAL: Error inserting apm) OneManArmy Linux - Laptop and Netbook 0 05-12-2004 04:39 PM
Problems with apm and acpi xflow7 Linux - General 1 05-08-2004 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 04:30 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