How do you get the angle of the lid from the CLI?Is there any way to set a MacBook Pro to not sleep when you close the lid?MacBook Pro 13 doesn't fall asleep when the lid closedHow to get the postion of the lidPreventing MacBook from sleeping when closing lid on SierraHow to keep MacBook awake with lid closed + extended display?My Macbook air won't go to sleep when I close the lidCommand-line stop MacBook from sleeping when lid is closed?Hinge on 2016 MacBook Pro
If the UK government illegally doesn't ask for article 50 extension, can parliament do it instead?
What percentage of the mass/energy of the universe is in the form of electromagnetic waves?
To which country did MiGs in Top Gun belong?
How to check status of Wi-Fi adapter through command line?
Declaring 2 (or even multi-) dimensional std::arrays elegantly
How did Gollum know Sauron was gathering the Haradrim to make war?
What is the maximal acceptable delay between pilot's input and flight control surface actuation?
Sum of Infinite series with a Geometric series in multiply
Function of the separated, individual solar cells on Telstar 1 and 2? Why were they "special"?
How can I oppose my advisor granting gift authorship to a collaborator?
Plotting level sets of the form f(x,y,c)==0
Are there photos of the Apollo LM showing disturbed lunar soil resulting from descent engine exhaust?
A question about dihedral group
Why would a Intel 8080 chip be destroyed if +12 V is connected before -5 V?
How to align values in table according to the pm and point?
Can there be plants on the dark side of a tidally locked world?
Taking the first element in a list of associations
Why not use futuristic pavise ballistic shields for protection?
IEEE Registration Authority mac prefix
What is the significance of 104%?
Tiny image scraper for xkcd.com
How do you manage to study and have a balance in your life at the same time?
What is this red bug infesting some trees in southern Germany?
properties that real numbers hold but complex numbers does not
How do you get the angle of the lid from the CLI?
Is there any way to set a MacBook Pro to not sleep when you close the lid?MacBook Pro 13 doesn't fall asleep when the lid closedHow to get the postion of the lidPreventing MacBook from sleeping when closing lid on SierraHow to keep MacBook awake with lid closed + extended display?My Macbook air won't go to sleep when I close the lidCommand-line stop MacBook from sleeping when lid is closed?Hinge on 2016 MacBook Pro
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I know that you get whether the lid is open or closed from:
ioreg -r -k AppleClamshellState -d 4 | grep AppleClamshellState
.
What I want to know is if the lid is open, what is its angle relative to the plane it is sitting on.
macos macbook command-line hardware
New contributor
add a comment |
I know that you get whether the lid is open or closed from:
ioreg -r -k AppleClamshellState -d 4 | grep AppleClamshellState
.
What I want to know is if the lid is open, what is its angle relative to the plane it is sitting on.
macos macbook command-line hardware
New contributor
add a comment |
I know that you get whether the lid is open or closed from:
ioreg -r -k AppleClamshellState -d 4 | grep AppleClamshellState
.
What I want to know is if the lid is open, what is its angle relative to the plane it is sitting on.
macos macbook command-line hardware
New contributor
I know that you get whether the lid is open or closed from:
ioreg -r -k AppleClamshellState -d 4 | grep AppleClamshellState
.
What I want to know is if the lid is open, what is its angle relative to the plane it is sitting on.
macos macbook command-line hardware
macos macbook command-line hardware
New contributor
New contributor
edited 7 hours ago
bmike♦
168k46 gold badges304 silver badges662 bronze badges
168k46 gold badges304 silver badges662 bronze badges
New contributor
asked 11 hours ago
BlamBlam
1184 bronze badges
1184 bronze badges
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
There is no easy way to do this from within the computer (you could always measure it of course). The hardware on laptops only needs to know whether the lid is closed or not, so a simple on/off switch is enough and built-in.
There are (at least) two threads on reddit where apparently the tilt level seems to control audio volume:
- https://www.reddit.com/r/ProgrammerHumor/comments/6fek1m/hope_you_dont_mind_having_the_volume_turned_up/
- https://www.reddit.com/r/ProgrammerHumor/comments/6fowct/lid_controlled_volume_mac_edition/
The first one is quite obviously a fake, the second one claims
You're right! I used the ambient light sensor values to calculate the percentage
So while there isn't a way to get the angle directly, it can be calculated/approximated using other sensors.
3
I think you're ignoring the opportunity to superglue a Bluetooth spirit level to the lid of the MacBook :-) Oh, and one to the chassis too.
– High Performance Mark
11 hours ago
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
There is no easy way to do this from within the computer (you could always measure it of course). The hardware on laptops only needs to know whether the lid is closed or not, so a simple on/off switch is enough and built-in.
There are (at least) two threads on reddit where apparently the tilt level seems to control audio volume:
- https://www.reddit.com/r/ProgrammerHumor/comments/6fek1m/hope_you_dont_mind_having_the_volume_turned_up/
- https://www.reddit.com/r/ProgrammerHumor/comments/6fowct/lid_controlled_volume_mac_edition/
The first one is quite obviously a fake, the second one claims
You're right! I used the ambient light sensor values to calculate the percentage
So while there isn't a way to get the angle directly, it can be calculated/approximated using other sensors.
3
I think you're ignoring the opportunity to superglue a Bluetooth spirit level to the lid of the MacBook :-) Oh, and one to the chassis too.
– High Performance Mark
11 hours ago
add a comment |
There is no easy way to do this from within the computer (you could always measure it of course). The hardware on laptops only needs to know whether the lid is closed or not, so a simple on/off switch is enough and built-in.
There are (at least) two threads on reddit where apparently the tilt level seems to control audio volume:
- https://www.reddit.com/r/ProgrammerHumor/comments/6fek1m/hope_you_dont_mind_having_the_volume_turned_up/
- https://www.reddit.com/r/ProgrammerHumor/comments/6fowct/lid_controlled_volume_mac_edition/
The first one is quite obviously a fake, the second one claims
You're right! I used the ambient light sensor values to calculate the percentage
So while there isn't a way to get the angle directly, it can be calculated/approximated using other sensors.
3
I think you're ignoring the opportunity to superglue a Bluetooth spirit level to the lid of the MacBook :-) Oh, and one to the chassis too.
– High Performance Mark
11 hours ago
add a comment |
There is no easy way to do this from within the computer (you could always measure it of course). The hardware on laptops only needs to know whether the lid is closed or not, so a simple on/off switch is enough and built-in.
There are (at least) two threads on reddit where apparently the tilt level seems to control audio volume:
- https://www.reddit.com/r/ProgrammerHumor/comments/6fek1m/hope_you_dont_mind_having_the_volume_turned_up/
- https://www.reddit.com/r/ProgrammerHumor/comments/6fowct/lid_controlled_volume_mac_edition/
The first one is quite obviously a fake, the second one claims
You're right! I used the ambient light sensor values to calculate the percentage
So while there isn't a way to get the angle directly, it can be calculated/approximated using other sensors.
There is no easy way to do this from within the computer (you could always measure it of course). The hardware on laptops only needs to know whether the lid is closed or not, so a simple on/off switch is enough and built-in.
There are (at least) two threads on reddit where apparently the tilt level seems to control audio volume:
- https://www.reddit.com/r/ProgrammerHumor/comments/6fek1m/hope_you_dont_mind_having_the_volume_turned_up/
- https://www.reddit.com/r/ProgrammerHumor/comments/6fowct/lid_controlled_volume_mac_edition/
The first one is quite obviously a fake, the second one claims
You're right! I used the ambient light sensor values to calculate the percentage
So while there isn't a way to get the angle directly, it can be calculated/approximated using other sensors.
edited 7 hours ago
answered 11 hours ago
nohillside♦nohillside
56.8k14 gold badges119 silver badges167 bronze badges
56.8k14 gold badges119 silver badges167 bronze badges
3
I think you're ignoring the opportunity to superglue a Bluetooth spirit level to the lid of the MacBook :-) Oh, and one to the chassis too.
– High Performance Mark
11 hours ago
add a comment |
3
I think you're ignoring the opportunity to superglue a Bluetooth spirit level to the lid of the MacBook :-) Oh, and one to the chassis too.
– High Performance Mark
11 hours ago
3
3
I think you're ignoring the opportunity to superglue a Bluetooth spirit level to the lid of the MacBook :-) Oh, and one to the chassis too.
– High Performance Mark
11 hours ago
I think you're ignoring the opportunity to superglue a Bluetooth spirit level to the lid of the MacBook :-) Oh, and one to the chassis too.
– High Performance Mark
11 hours ago
add a comment |