LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-22-2017, 01:21 AM   #1
enableshowrun
LQ Newbie
 
Registered: Jun 2017
Posts: 7

Rep: Reputation: Disabled
Lightbulb Debian Jessie & i2c-dev on a PowerBook G4 causing power saving issues


Hello! I used to be on LQ relatively frequently but took a long hiatus and lost both my login and email so I just got a new one. :P

I am having two small issues using Debian on my older PowerBook G4 (Al 15" 1.5GHz A1095), both started happening after I added i2c-dev to /etc/modules, and both stop happening if I remove the module again. I would like to keep the module added because I would like the backlight keyboard to work. I am not running any x server and would like this to stay console-only.

The first is that after startup is completed, and right before the login prompt is displayed, the screen switches to minimum brightness. This ordinarily wouldn't be too much of an issue but on this computer the whole display is turned off when on minimum brightness. I have tried fixing this by adding "echo 200 > /sys/class/backlight/radeon_l0/brightness" which works when run manually, to /etc/rc.local.

The second is that the screen turns off too fast when on battery power. I ordered a new battery an it can hold a charge for 5+ hours so I don't think that this could be a battery drain. I also used rc.local to try to fix this by adding "setterm --blank 0" to it but this did not work nor does this work when run manually.

My searching makes me think that there is a power save setting somewhere that is dictating this stuff. I don't know what to do with this info though, and I'm having a hard time finding information on controlling this stuff with systemd instead of init. The systemd-backlight service appears to be working because on rebook during startup the screen brightness does match what it was during shutdown, its not until right before the login prompt comes up that the brightness is lowered again. Any ideas?
 
Old 06-25-2017, 04:59 PM   #2
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Rep: Reputation: 143Reputation: 143
Just to comment...

The G4 is a very power-hungry processor, and the G5 was impossible to use in laptops. This is the main reason Apple switched to Intel processors.

I'm sure they used very specialized software and/or hardware tricks to get even the G4 laptops to work decently with Mac OS which is probably missing from any type of Linux distribution.

Last edited by Laserbeak; 06-25-2017 at 05:01 PM.
 
Old 06-29-2017, 05:33 PM   #3
enableshowrun
LQ Newbie
 
Registered: Jun 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
You're post got me thinking, and I found the answer! I was trying to solve this too Linux-y. On Apple computers Debian installs a package called pbbuttonsd, which handles the hotkeys unique to Apple. This package also handles things like screen blanking and brightness. In /etc/pbbuttonsd.conf there were two options, "LCD_Brightness" and "onBattery_DimTime," that were exactly what I was looking for! Thank you!
 
1 members found this post helpful.
  


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
i2c-dev.h missing i2c read/write functions dbrazeau Programming 1 12-17-2015 10:40 PM
How to forward IOCTL's from i2c-dev.c to adapter driver (i2c-rt3352.c) elonica.pl Linux - Kernel 2 08-23-2011 02:03 AM
[SOLVED] No /dev/i2c-0 entry after insmod i2c-dev sajnanazeer Linux - Newbie 1 08-10-2011 07:39 AM
i2c-dev.h Issues napier Linux - Embedded & Single-board computer 1 03-24-2011 12:20 PM
power saving issues with web server linuxmandrake Linux - Server 7 03-08-2008 09:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:06 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
Open Source Consulting | Domain Registration