Skip to content
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

Merged
merged 1 commit into from
Sep 23, 2024
Merged

Conversation

archisman-panigrahi
Copy link
Contributor

Some ARM Chromebooks support running Debian and the Pixel desktop of RPi OS.

This commit adds support for them

@archisman-panigrahi archisman-panigrahi force-pushed the main branch 2 times, most recently from ee5ea39 to 2799d39 Compare September 23, 2024 03:34
@archisman-panigrahi
Copy link
Contributor Author

Please release a new version after merging, so that it would reach the users.

@@ -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
Copy link
Owner

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

Copy link
Contributor Author

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?

Copy link
Owner

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

}

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",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs updating too

@archisman-panigrahi
Copy link
Contributor Author

How about now?

@linusg
Copy link
Owner

linusg commented Sep 23, 2024

Looks good, thanks!

@linusg linusg merged commit 4e998a1 into linusg:main Sep 23, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants