I am using a M4 Pro 14 Inch with MacOS 27 Beta.
My device has a known water damage on the lid-sensor (it doesn't detect closing or opening the screen). I am unsure whether thats the reason for this behavior or the OS:
johann@MacBook-Pro-von-Johann downloads % sudo sh ./lid.sh
MacBook Lid Angle Sensor Diagnostic Tool
System Information:
2026-06-14 00:50:51.201 system_profiler[23396:6496523] hw.cpufamily: 0x17d5b93a
- Model: MacBook Pro
2026-06-14 00:50:51.285 system_profiler[23403:6496554] hw.cpufamily: 0x17d5b93a
- Chip: Apple M4 Pro
- macOS: 27.0
Step 1: Looking for exact expected sensor...
Command: hidutil list --matching '{"VendorID":0x5ac,"ProductID":0x8104,"PrimaryUsagePage":32,"PrimaryUsage":138}'
❌ Exact match not found. Continuing diagnostics...
Step 2: Looking for any Apple sensors...
Command: hidutil list --matching '{"VendorID":0x5ac,"PrimaryUsagePage":32}'
❌ No Apple sensors found with UsagePage 32
Step 3: Looking for orientation sensors with any ProductID...
Command: hidutil list --matching '{"VendorID":0x5ac,"PrimaryUsagePage":32,"PrimaryUsage":138}'
❌ No orientation sensors found
Step 4: Looking for all Apple 0x8104 devices...
Command: hidutil list --matching '{"VendorID":0x5ac,"ProductID":0x8104}'
🔍 Found Apple 0x8104 devices (different usage pages):
Services:
VendorID ProductID LocationID UsagePage Usage RegistryID Transport Class Product UserClass Built-In
0x5ac 0x8104 0x0 65280 5 0x100000965 SPU AppleSPUHIDDriver als-temp (null) 1
0x5ac 0x8104 0x0 65280 9 0x100000969 SPU AppleSPUHIDDriver gyro (null) 1
0x5ac 0x8104 0x0 65280 3 0x10000096a SPU AppleSPUHIDDriver accel (null) 1
Devices:
VendorID ProductID LocationID UsagePage Usage RegistryID Transport Class Product UserClass Built-In
0x5ac 0x8104 0x0 65280 3 0x1000008dc SPU AppleSPUHIDDevice accel (null) 1
0x5ac 0x8104 0x0 65280 9 0x1000008db SPU AppleSPUHIDDevice gyro (null) 1
0x5ac 0x8104 0x0 65280 5 0x1000008d7 SPU AppleSPUHIDDevice als-temp (null) 1
Step 5: Looking for similar ProductIDs...
Command: hidutil list --matching '{"VendorID":0x5ac}' | grep -E '0x810[0-9A-F]'
🔍 Found similar Apple ProductIDs (0x810X):
0x5ac 0x8104 0x0 65280 5 0x100000965 SPU AppleSPUHIDDriver als-temp (null) 1
0x5ac 0x8104 0x0 65280 9 0x100000969 SPU AppleSPUHIDDriver gyro (null) 1
0x5ac 0x8104 0x0 65280 3 0x10000096a SPU AppleSPUHIDDriver accel (null) 1
0x5ac 0x8104 0x0 65280 5 0x1000008d7 SPU AppleSPUHIDDevice als-temp (null) 1
0x5ac 0x8104 0x0 65280 9 0x1000008db SPU AppleSPUHIDDevice gyro (null) 1
0x5ac 0x8104 0x0 65280 3 0x1000008dc SPU AppleSPUHIDDevice accel (null) 1
Step 6: All Apple HID devices (filtered for potential sensors)...
Command: hidutil list --matching '{"VendorID":0x5ac}' | grep -i -E '(sensor|orientation|32|138)'
❌ No sensor-related Apple devices found
==============================================
Diagnostic Summary:
⚠️ STATUS: Different UsagePage - check other usage pages
Found Apple 0x8104 devices but different usage pages
Please share this entire output for troubleshooting!
I am using a M4 Pro 14 Inch with MacOS 27 Beta.
My device has a known water damage on the lid-sensor (it doesn't detect closing or opening the screen). I am unsure whether thats the reason for this behavior or the OS:
johann@MacBook-Pro-von-Johann downloads % sudo sh ./lid.sh
MacBook Lid Angle Sensor Diagnostic Tool
System Information:
2026-06-14 00:50:51.201 system_profiler[23396:6496523] hw.cpufamily: 0x17d5b93a
2026-06-14 00:50:51.285 system_profiler[23403:6496554] hw.cpufamily: 0x17d5b93a
Step 1: Looking for exact expected sensor...
Command: hidutil list --matching '{"VendorID":0x5ac,"ProductID":0x8104,"PrimaryUsagePage":32,"PrimaryUsage":138}'
❌ Exact match not found. Continuing diagnostics...
Step 2: Looking for any Apple sensors...
Command: hidutil list --matching '{"VendorID":0x5ac,"PrimaryUsagePage":32}'
❌ No Apple sensors found with UsagePage 32
Step 3: Looking for orientation sensors with any ProductID...
Command: hidutil list --matching '{"VendorID":0x5ac,"PrimaryUsagePage":32,"PrimaryUsage":138}'
❌ No orientation sensors found
Step 4: Looking for all Apple 0x8104 devices...
Command: hidutil list --matching '{"VendorID":0x5ac,"ProductID":0x8104}'
🔍 Found Apple 0x8104 devices (different usage pages):
Services:
VendorID ProductID LocationID UsagePage Usage RegistryID Transport Class Product UserClass Built-In
0x5ac 0x8104 0x0 65280 5 0x100000965 SPU AppleSPUHIDDriver als-temp (null) 1
0x5ac 0x8104 0x0 65280 9 0x100000969 SPU AppleSPUHIDDriver gyro (null) 1
0x5ac 0x8104 0x0 65280 3 0x10000096a SPU AppleSPUHIDDriver accel (null) 1
Devices:
VendorID ProductID LocationID UsagePage Usage RegistryID Transport Class Product UserClass Built-In
0x5ac 0x8104 0x0 65280 3 0x1000008dc SPU AppleSPUHIDDevice accel (null) 1
0x5ac 0x8104 0x0 65280 9 0x1000008db SPU AppleSPUHIDDevice gyro (null) 1
0x5ac 0x8104 0x0 65280 5 0x1000008d7 SPU AppleSPUHIDDevice als-temp (null) 1
Step 5: Looking for similar ProductIDs...
Command: hidutil list --matching '{"VendorID":0x5ac}' | grep -E '0x810[0-9A-F]'
🔍 Found similar Apple ProductIDs (0x810X):
0x5ac 0x8104 0x0 65280 5 0x100000965 SPU AppleSPUHIDDriver als-temp (null) 1
0x5ac 0x8104 0x0 65280 9 0x100000969 SPU AppleSPUHIDDriver gyro (null) 1
0x5ac 0x8104 0x0 65280 3 0x10000096a SPU AppleSPUHIDDriver accel (null) 1
0x5ac 0x8104 0x0 65280 5 0x1000008d7 SPU AppleSPUHIDDevice als-temp (null) 1
0x5ac 0x8104 0x0 65280 9 0x1000008db SPU AppleSPUHIDDevice gyro (null) 1
0x5ac 0x8104 0x0 65280 3 0x1000008dc SPU AppleSPUHIDDevice accel (null) 1
Step 6: All Apple HID devices (filtered for potential sensors)...
Command: hidutil list --matching '{"VendorID":0x5ac}' | grep -i -E '(sensor|orientation|32|138)'
❌ No sensor-related Apple devices found
==============================================
Diagnostic Summary:
Found Apple 0x8104 devices but different usage pages
Please share this entire output for troubleshooting!