Linux Support
#57
(11-12-2016, 01:04 AM)Ghelorn Wrote:
(11-12-2016, 12:29 AM)psychedup Wrote:
(11-09-2016, 04:41 PM)Ghelorn Wrote: I also noticed the brightnes on the lcd is lacking but can be turned up with the gpio pin. I just run a small scrip that sets the required pin to high and then sets it to low when it detects xscreensaver running.

Which GPIO controls the brightness? Would you mind sharing your script?

this code is dirty but just checks the state of xscreensaver and writes to the pin. there are better ways but this works. needs root

doesnt actually turn off the lcd though. just dulls it.

Code:
echo 362 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio362/direction

while true; do
 case "`xscreensaver-command -time | egrep -o ' blanked|non-blanked|locked'`" in
   " blanked")     echo 1 > /sys/class/gpio/gpio362/value ;;
   "non-blanked")  echo 0 > /sys/class/gpio/gpio362/value ;;
 esac
 sleep 5
done

That works! (I just manually ran the 2 echo commands). I had no idea it could get so bright. Thanks!
  Reply


Messages In This Thread
Linux Support - by UnixOutlaw - 05-26-2016, 11:45 PM
RE: Linux Support - by nagmier - 05-31-2016, 01:58 PM
RE: Linux Support - by Krinilssen - 06-09-2016, 10:09 AM
RE: Linux Support - by melissagirl - 06-14-2016, 11:34 AM
RE: Linux Support - by tllim - 06-14-2016, 11:39 AM
RE: Linux Support - by nagmier - 06-14-2016, 04:20 PM
RE: Linux Support - by tllim - 06-14-2016, 08:31 PM
RE: Linux Support - by melissagirl - 06-15-2016, 11:06 AM
RE: Linux Support - by tllim - 06-15-2016, 11:21 AM
RE: Linux Support - by Krinilssen - 06-16-2016, 08:29 AM
RE: Linux Support - by tllim - 06-16-2016, 12:15 PM
RE: Linux Support - by UnixOutlaw - 07-30-2016, 07:07 AM
RE: Linux Support - by m_bear - 07-05-2016, 12:50 AM
RE: Linux Support - by vintagewaffle - 07-11-2016, 12:56 PM
RE: Linux Support - by tllim - 07-12-2016, 07:10 PM
RE: Linux Support - by apple4ever - 07-23-2016, 08:41 AM
RE: Linux Support - by lenny.raposo-pine64.pro - 07-30-2016, 03:50 PM
RE: Linux Support - by UnixOutlaw - 07-30-2016, 10:03 PM
RE: Linux Support - by UnixOutlaw - 09-05-2016, 03:36 AM
RE: Linux Support - by apple4ever - 09-05-2016, 08:39 AM
RE: Linux Support - by tkaiser - 09-19-2016, 12:39 AM
RE: Linux Support - by tkaiser - 09-20-2016, 01:55 AM
RE: Linux Support - by apple4ever - 09-20-2016, 07:25 AM
RE: Linux Support - by MarkHaysHarris777 - 09-20-2016, 07:31 AM
RE: Linux Support - by tkaiser - 09-20-2016, 07:56 AM
RE: Linux Support - by apple4ever - 03-18-2017, 07:25 PM
RE: Linux Support - by tkaiser - 09-20-2016, 09:33 AM
RE: Linux Support - by vintagewaffle - 10-26-2016, 11:55 AM
RE: Linux Support - by HayseedGeek - 10-26-2016, 06:09 PM
RE: Linux Support - by pfeerick - 10-26-2016, 07:03 PM
RE: Linux Support - by HayseedGeek - 10-26-2016, 08:34 PM
RE: Linux Support - by vintagewaffle - 10-27-2016, 02:01 PM
RE: Linux Support - by UnixOutlaw - 10-26-2016, 06:21 PM
RE: Linux Support - by vintagewaffle - 10-31-2016, 10:31 AM
RE: Linux Support - by Ghelorn - 11-01-2016, 03:48 AM
RE: Linux Support - by modsbyus - 11-01-2016, 07:40 PM
RE: Linux Support - by MarkHaysHarris777 - 10-31-2016, 10:53 AM
RE: Linux Support - by vintagewaffle - 10-31-2016, 12:30 PM
RE: Linux Support - by MarkHaysHarris777 - 10-31-2016, 03:54 PM
RE: Linux Support - by Ghelorn - 11-01-2016, 07:45 PM
RE: Linux Support - by modsbyus - 11-01-2016, 07:48 PM
RE: Linux Support - by Ghelorn - 11-01-2016, 07:53 PM
RE: Linux Support - by modsbyus - 11-01-2016, 08:27 PM
RE: Linux Support - by vintagewaffle - 11-02-2016, 07:08 AM
RE: Linux Support - by Ghelorn - 11-02-2016, 07:12 AM
RE: Linux Support - by modsbyus - 11-02-2016, 11:53 AM
RE: Linux Support - by vintagewaffle - 11-02-2016, 11:26 AM
RE: Linux Support - by vintagewaffle - 11-02-2016, 09:39 PM
RE: Linux Support - by modsbyus - 11-02-2016, 10:14 PM
RE: Linux Support - by vintagewaffle - 11-03-2016, 06:47 AM
RE: Linux Support - by Ghelorn - 11-03-2016, 04:45 AM
RE: Linux Support - by Ghelorn - 11-03-2016, 04:38 PM
RE: Linux Support - by modsbyus - 11-04-2016, 02:40 PM
RE: Linux Support - by vintagewaffle - 11-07-2016, 01:37 PM
RE: Linux Support - by Ghelorn - 11-09-2016, 04:41 PM
RE: Linux Support - by psychedup - 11-12-2016, 12:29 AM
RE: Linux Support - by Ghelorn - 11-12-2016, 01:04 AM
RE: Linux Support - by psychedup - 11-12-2016, 01:09 AM
RE: Linux Support - by Jessica Spongekipper - 11-30-2016, 03:46 AM
RE: Linux Support - by Terra854 - 11-30-2016, 07:15 AM
RE: Linux Support - by Jessica Spongekipper - 12-01-2016, 09:24 AM
RE: Linux Support - by pfeerick - 12-01-2016, 09:15 PM
RE: Linux Support - by Jessica Spongekipper - 12-02-2016, 02:47 AM
RE: Linux Support - by pfeerick - 12-02-2016, 04:32 AM
RE: Linux Support - by Jessica Spongekipper - 12-02-2016, 06:55 AM
RE: Linux Support - by modsbyus - 12-01-2016, 10:04 AM
RE: Linux Support - by Jessica Spongekipper - 12-01-2016, 12:43 PM
RE: Linux Support - by Ghelorn - 12-02-2016, 06:03 AM
RE: Linux Support - by pfeerick - 12-02-2016, 05:56 PM
RE: Linux Support - by Jessica Spongekipper - 12-05-2016, 08:12 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Information LCD Support on Linux pfeerick 8 20,856 02-08-2021, 03:30 PM
Last Post: HBeserra
  [EXPERIMENTAL] Linux on the LCD screen Terra854 24 39,448 07-21-2017, 07:41 AM
Last Post: apple4ever
  Touch screen support shariq_2001 14 22,349 12-07-2016, 07:47 AM
Last Post: Luke
Photo Playbox LCD on Linux MackPI 10 17,583 10-19-2016, 07:49 AM
Last Post: Zoidiano0
  Received a bad LCD, can't get support. bryanlyon 3 5,563 09-27-2016, 03:55 AM
Last Post: Luke
  Touchscreen support? NoahJ 12 17,609 07-09-2016, 12:01 PM
Last Post: yodermk
  LVDS support Flood_of_SYNs 2 7,158 12-22-2015, 05:08 PM
Last Post: balornt

Forum Jump:


Users browsing this thread: 6 Guest(s)