No sound on desktops and mini PCs: fixed
Affected: machines without a lid switch, such as desktops, mini PCs and all-in-ones. First found and fixed on a Dell OptiPlex 7040. Laptops are not affected.
Symptoms
The sound card is detected and the audio config loads, but nothing plays: no speaker, line-out or headphone output.
The volume slider moves and the media apps play, but you hear nothing.
On regular Linux (for example Zorin) the same machine plays sound fine.
Cause
Googlebook OS is built for laptops. On a machine without a lid switch, Android reports the lid state as LID_ABSENT. Google's DesktopPowerService treats that as "Lid closed" and does what it would do on a closed laptop:
It sends notifySuspend(true) to the audio HAL (dras).
It sets the master mute.
The audio HAL stays suspended, never opens the sound card, and everything is muted. The hardware and drivers are fine; the OS just thinks the laptop is closed.
The fix
1. Virtual lid switch in the kernel (the main fix)
The kernel now includes a small built-in driver (kernel/virtual_lid/, CONFIG_INPUT_GBOS_VIRTUAL_LID=y). It registers a lid switch that always reports open, so Android sees an open laptop and never suspends or mutes the audio. This works on every machine, needs no settings and has no effect on real laptops beyond what their own lid switch already reports.
To turn it off, add this boot option: gbos_virtual_lid.enable=0
2. Fallback for kernels without the virtual lid
The service gbos_lidless_audio (usb/audio/lidless_audio.sh) detects the "Lid closed" event, wakes the audio HAL and lifts the master mute. It does this again every time Android reports "Lid closed". Control it in gbos.cfg:
LIDLESS_AUDIO=auto # default: only acts when there is no real lid
LIDLESS_AUDIO=1 # always on
LIDLESS_AUDIO=0 # off
3. Line-out and headphone output on desktops
The audio mixer paths now also switch on the Line Out (the green jack on the back of a desktop) and set a sensible headphone and line-out volume. Before this, a desktop with speakers on the line-out stayed silent even after the mute fix.
How to get it
Update your stick to the latest gbOS86 build, both the kernel (BOOTX64.EFI) and the gbos folder. No other settings are needed.
Check that it works
After booting, play any sound. If you still hear nothing, collect a log and post it in the forum or Discord. The log folder on the stick (gbos/logs/boot-N/) contains audio.txt and logcat.txt. A line containing Lid closed in logcat.txt means the fix is not active (old kernel, or LIDLESS_AUDIO=0).
Tested on
Machine Result
Dell OptiPlex 7040 (Skylake, Realtek ALC3234 HDA) Speaker and line-out work
Tested on another desktop or mini PC? Please report it so we can add it to the hardware list.
Affected: machines without a lid switch, such as desktops, mini PCs and all-in-ones. First found and fixed on a Dell OptiPlex 7040. Laptops are not affected.
Symptoms
The sound card is detected and the audio config loads, but nothing plays: no speaker, line-out or headphone output.
The volume slider moves and the media apps play, but you hear nothing.
On regular Linux (for example Zorin) the same machine plays sound fine.
Cause
Googlebook OS is built for laptops. On a machine without a lid switch, Android reports the lid state as LID_ABSENT. Google's DesktopPowerService treats that as "Lid closed" and does what it would do on a closed laptop:
It sends notifySuspend(true) to the audio HAL (dras).
It sets the master mute.
The audio HAL stays suspended, never opens the sound card, and everything is muted. The hardware and drivers are fine; the OS just thinks the laptop is closed.
The fix
1. Virtual lid switch in the kernel (the main fix)
The kernel now includes a small built-in driver (kernel/virtual_lid/, CONFIG_INPUT_GBOS_VIRTUAL_LID=y). It registers a lid switch that always reports open, so Android sees an open laptop and never suspends or mutes the audio. This works on every machine, needs no settings and has no effect on real laptops beyond what their own lid switch already reports.
To turn it off, add this boot option: gbos_virtual_lid.enable=0
2. Fallback for kernels without the virtual lid
The service gbos_lidless_audio (usb/audio/lidless_audio.sh) detects the "Lid closed" event, wakes the audio HAL and lifts the master mute. It does this again every time Android reports "Lid closed". Control it in gbos.cfg:
LIDLESS_AUDIO=auto # default: only acts when there is no real lid
LIDLESS_AUDIO=1 # always on
LIDLESS_AUDIO=0 # off
3. Line-out and headphone output on desktops
The audio mixer paths now also switch on the Line Out (the green jack on the back of a desktop) and set a sensible headphone and line-out volume. Before this, a desktop with speakers on the line-out stayed silent even after the mute fix.
How to get it
Update your stick to the latest gbOS86 build, both the kernel (BOOTX64.EFI) and the gbos folder. No other settings are needed.
Check that it works
After booting, play any sound. If you still hear nothing, collect a log and post it in the forum or Discord. The log folder on the stick (gbos/logs/boot-N/) contains audio.txt and logcat.txt. A line containing Lid closed in logcat.txt means the fix is not active (old kernel, or LIDLESS_AUDIO=0).
Tested on
Machine Result
Dell OptiPlex 7040 (Skylake, Realtek ALC3234 HDA) Speaker and line-out work
Tested on another desktop or mini PC? Please report it so we can add it to the hardware list.