-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Google Chromebooks #65
Conversation
ee5ea39
to
2799d39
Compare
Please release a new version after merging, so that it would reach the users. |
rpi_backlight/__init__.py
Outdated
@@ -24,7 +24,7 @@ class BoardType(Enum): | |||
#: Tinker Board 2 | |||
TINKER_BOARD_2 = 3 | |||
#: Microsoft Surface RT | |||
MICROSOFT_SURFACE_RT = 4 | |||
SURFACE_RT_OR_GOOGLE_CHROMEBOOK = 4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please call it GENERIC at this point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem with generic is that, most generic devices have brightness control at sys/class/backlight/acpi_video0
or sys/class/backlight/intel_backlight
(and those devices would be supported by i386 version of Raspberry Pi OS). Given that, what do you think we should do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a library intended to run on a raspberry pi board with the official raspberry pi display, edge cases like this don't matter
rpi_backlight/cli.py
Outdated
} | ||
|
||
BOARD_TYPE_TO_STRING = { | ||
BoardType.RASPBERRY_PI: "raspberry-pi", | ||
BoardType.TINKER_BOARD: "tinker-board", | ||
BoardType.TINKER_BOARD_2: "tinker-board-2", | ||
BoardType.MICROSOFT_SURFACE_RT: "microsoft-surface-rt", | ||
BoardType.SURFACE_RT_OR_GOOGLE_CHROMEBOOK: "microsoft-surface-rt", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs updating too
2799d39
to
a593375
Compare
How about now? |
Looks good, thanks! |
Some ARM Chromebooks support running Debian and the Pixel desktop of RPi OS.
This commit adds support for them