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
A question about dihedral group
How do I stop making people jump at home and at work?
Why do old games use flashing as means of showing damage?
Meaning of "offen balkon machen"?
How to add some symbol (or just add newline) if the numbers in the text are not continuous
Given a specific computer system, is it possible to estimate the actual precise run time of a piece of Assembly code
In chocolate terminology, what is the name of thinly sliced leaf-shaped toppings made from hot, smooth chocolate, used to form flower petals?
properties that real numbers hold but complex numbers does not
Can a country avoid prosecution for crimes against humanity by denying it happened?
Does secure hashing imply secure symmetric encryption?
My boss says "This will help us better view the utilization of your services." Does this mean my job is ending in this organisation?
co-son-in-law or co-brother
How Total raw is calculated for Science pack 2?
Why is k-means used for non normally distributed data?
Solve this icositetragram
Received email from ISP saying one of my devices has malware
What is this red bug infesting some trees in southern Germany?
Why KVM VPS is slower then OPENVZ
Ideal characterization of almost convergence
Are there any writings by blinded and/or exiled Byzantine emperors?
Is there anything in the universe that cannot be compressed?
Why do modes sound so different, although they are basically the same as a mode of another scale?
Lumix G7: Raw photos only in 1920x1440, no higher res available
Map a function that takes arguments in different levels of a list
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
Blam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
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
Blam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
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
Blam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
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
Blam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Blam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 6 hours ago
bmike♦
168k46 gold badges304 silver badges662 bronze badges
168k46 gold badges304 silver badges662 bronze badges
New contributor
Blam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 10 hours ago
BlamBlam
1184 bronze badges
1184 bronze badges
New contributor
Blam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Blam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
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
9 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
9 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
9 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 6 hours ago
answered 10 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
9 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
9 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
9 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
9 hours ago
add a comment |