• HomeBoards
  • RulesRules
  • HelpHelp
  • WikiWiki
  • Donate

Author Topic: brightness control in Retromini opendingux?  (Read 3353 times)

romanaOne (OP)

  • Posts: 40
brightness control in Retromini opendingux?
« on: May 04, 2019, 02:39:54 pm »
Save me a hunt through /proc/blah/xxx/yyy/yada/yada for something to echo random numbers at.

Err, I mean is there a way to turn that too bright screen down a bit?

Anyone else finding the battery life terrible? (It was bad with the original OS, but even conservative overclocking at 300MHz in ReGBA uses about over half the battery in an hour.)

I'm not expecting big power savings, but it would be nice if the screen didn't hurt to look at.

romanaOne (OP)

  • Posts: 40
Re: brightness control in Retromini opendingux?
« Reply #1 on: May 04, 2019, 04:35:20 pm »
Code: [Select]
# set minimum brightness of 1
# brightness can be 1 to 9
 
sudo sh -c "echo 1 > /sys/devices/platform/board/board\:backlight/backlight/board\:backlight/brightness"

pcercuei

  • Posts: 1720
    • My devblog
Re: brightness control in Retromini opendingux?
« Reply #2 on: May 04, 2019, 05:44:36 pm »
Anyone else finding the battery life terrible? (It was bad with the original OS, but even conservative overclocking at 300MHz in ReGBA uses about over half the battery in an hour.)
Really? The battery life looks really good to me, I get around 5h of battery life playing GBA.

romanaOne (OP)

  • Posts: 40
Re: brightness control in Retromini opendingux?
« Reply #3 on: May 04, 2019, 06:40:27 pm »
Could be just my battery. That's why I'm asking.

Anyway, is there a good way to set brightness?

My current--completely bonehead--solution is to wrap the above script in a little c program that runs it setuid root.

Code: [Select]
int main(void) {       
    setuid(0);
    clearenv();
    system("/boot/local/home/dimmer.sh");
}

setuid root
Code: [Select]
-rwsrwx---    1 root     users         5356 Jan  1 00:54 dim

If I put the compiled wrapper, called dim, in the apps directory, I can press A on it in Explorer to set the brightness to 1.

Is there a simple way to automatically run a script at start as root on opendingux? /etc/init.d is readonly so I can't put it in there.

pcercuei

  • Posts: 1720
    • My devblog
Re: brightness control in Retromini opendingux?
« Reply #4 on: May 04, 2019, 06:43:53 pm »
You can put it in data/local/etc/init.d/S99dim.sh.

Also don't rely too much on what the battery reports...

hiei

  • Posts: 169
Re: brightness control in Retromini opendingux?
« Reply #5 on: May 07, 2019, 12:46:17 pm »
Waiting for an opk that set this or at least a way to set it in gmenu2x!  :)
Many people could find this a little too hacky since many had also problem flashing OpenDingux.
« Last Edit: May 07, 2019, 12:52:34 pm by hiei »

hjkyu

  • Posts: 16
Re: brightness control in Retromini opendingux?
« Reply #6 on: May 08, 2019, 07:20:39 pm »
Waiting for an opk that set this or at least a way to set it in gmenu2x!  :)
Many people could find this a little too hacky since many had also problem flashing OpenDingux.
You can just put these on your SD card and run them using file explorer to change your brightness
Note: change .conf to .zip to extract files
« Last Edit: May 08, 2019, 07:29:43 pm by hjkyu »

Re: brightness control in Retromini opendingux?
« Reply #7 on: May 09, 2019, 10:03:07 pm »
Waiting for an opk that set this or at least a way to set it in gmenu2x!  :)
Many people could find this a little too hacky since many had also problem flashing OpenDingux.
You can just put these on your SD card and run them using file explorer to change your brightness
Note: change .conf to .zip to extract files
Bro some of us are waaaaaaaaaaaay too boomer for these things. I appreciate and admire all this work, but can?t you guys do a "for dummies guide"? It must be very simple, but I can?t just get my head around it.

hjkyu

  • Posts: 16
Re: brightness control in Retromini opendingux?
« Reply #8 on: May 10, 2019, 12:24:51 am »
Waiting for an opk that set this or at least a way to set it in gmenu2x!  :)
Many people could find this a little too hacky since many had also problem flashing OpenDingux.
You can just put these on your SD card and run them using file explorer to change your brightness
Note: change .conf to .zip to extract files
Bro some of us are waaaaaaaaaaaay too boomer for these things. I appreciate and admire all this work, but can?t you guys do a "for dummies guide"? It must be very simple, but I can?t just get my head around it.

1.) Extract the SD card from the device

2.) Connected to your PC using a SD card adapter or a USB reader

3.) Go to the link below and download those files and put them on the root or at the beginning of the SD card
https://mega.nz/#F!FIpG0SyC!9SdcUDkgdNuFhWbahpQPtg

4.) Remove the SD card from your PC and put it back into the device

5.) Now turn on the device and go into the file explorer


Go and open the mmcblk0p1


Scroll down until you see the level # files


Then select the brightness level # you want and the screen should appear and your brightness would be changed

Note: this is not a permanent solution every time you turn on your device it will reset the brightness back to 8


romanaOne (OP)

  • Posts: 40
Re: brightness control in Retromini opendingux?
« Reply #9 on: May 24, 2019, 08:26:45 pm »
So, as of the new 5/17 update,  is there still no way to make the brighness setting stick?

I do not need a gmenu setting; generally, I leave brightness alone once I have it set the way I like.

btw,  putting
Code: [Select]
echo 1 > /sys/devices/platform/board/board\:backlight/backlight/board\:backlight/brightness

 in /data/local/etc/init.d/S99dim.sh still fails.

Is there some special requirement for the permissions/ownership of S99dim.sh?
(I set perms same as other init scripts.)

Is there some special way to enable the script to run? I forget most of the init script mess now that the it is passe, in favour of the systemd mess in most Linux these days.....
« Last Edit: May 24, 2019, 08:29:12 pm by romanaOne »

 

Post a new topic
Post a new topic