jonaslorander / OctoPiPanel

OctoPiPanel creates a simple interface on a small screen to control OctoPrint.
Other
80 stars 40 forks source link

Backlight not turning off. #30

Closed DaveyRance closed 8 years ago

DaveyRance commented 9 years ago

No matter what i do it seems that my backlight will not turn off on the display.

I have checked the OctoPiPanel.cfg file and it has the default timeout of 30 seconds but it seems that it is just getting ignored by my system.

The display auto starts and works fine but just will never turn off so it is getting the non-printing screen burnt in.

My version of OctoPi is 1.1.1-30-g4fede5a (master branch) From the README i am running OctoPiPanel v0.1

It is on a PI 2.0.

Any ideas on what to check?

nophead commented 9 years ago

No idea, but does turning the light off really prevent screen burn? I think you need to erase the image, or move it about.

jonaslorander commented 9 years ago

What LCD have you got? I only have the Adafruit PiTFT on hand and rely on the community to update OctoPiPanel to work good with other LCDs.

DaveyRance commented 9 years ago

The version one of the adafruit

-----Original Message----- From: "Jonas Lorander" notifications@github.com Sent: ‎5/‎6/‎2015 2:26 AM To: "jonaslorander/OctoPiPanel" OctoPiPanel@noreply.github.com Cc: "Davey Rance" davey.rance@gmail.com Subject: Re: [OctoPiPanel] Backlight not turning off. (#30)

What LCD have you got? I only have the Adafruit PiTFT on hand and rely on the community to update OctoPiPanel to work good with other LCDs. — Reply to this email directly or view it on GitHub.

jonaslorander commented 9 years ago

That's odd then. Are you running devel och master branches? Are you running OctoPiPanel using sudo? If you are running devel, you could try adding a print statement inside the if clause on line 174 and see if the code executes. So we now if it is a software or hardware/driver/Setting related problem.

stirobot commented 9 years ago

Same issue. Raspi 2, octopi image (05-05 build), resistive 2.8" adafruit official pitft. Installed using the kernel stuff from adafruits automated instructions.

martinreinhold commented 8 years ago

I think I may have the source of this issue figured out. It looks like newer versions of the adafruit kernel patch uses a reference to pin 508 instead of 252 to control the backlight.

https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi/backlight-control

jonaslorander commented 8 years ago

Good eye! I'll fix that. @DaveyRance Can you see if it works with the new code?

DaveyRance commented 8 years ago

@jonaslorander Works perfectly now :) now after the time set in the cfg file the display goes nice and black.