Non-functioning keyboard on Macbook Air 2022

Internal keyboard not working on Macbook Air M2. No physical accidents.

The trackpad works but has not haptic sensory.

I'm using an external keyboard.

Updated osTahoe 26.1 today.

I've been to genius bar and they said computer doesn't recognize the keyboard (internal).

Another probem that's popped up is automatic restart after I shut this laptop down. Can't get that stopped. So, It goes to sleep then restarts and runs down the battery if not plugged in.

I've tried suggestions I've seen online but so far no luck.

Any ideas for a fix?


This is just shy of 2 yrs old :-(

Of course, no apple care on it. drats. but I've been a mac user since the mid 90s and this is the 1st issue i've ever had.

What's up with the short keyboard shelf life of this expensive little machine?


MacBook Air, macOS 26.1

Posted on Nov 13, 2025 1:00 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 13, 2025 8:57 PM

longlost53 wrote:

I've been to genius bar and they said computer doesn't recognize the keyboard (internal).

What did the Apple tech/agent actually say about it? Sounds like they should have either performed a clean install or provided you with a repair estimate.


Another probem that's popped up is automatic restart after I shut this laptop down. Can't get that stopped. So, It goes to sleep then restarts and runs down the battery if not plugged in.

The two issues may be related. What did the Apple tech/agent say about this problem.


I've tried suggestions I've seen online but so far no luck.
Any ideas for a fix?

No since we don't know exactly what the Apple tech/agent told you about the laptop, nor what Apple & you have already tried. We don't want to waste time repeating things.


If you came to me with your laptop....with everything you have mentioned here, I would be highly suspicious of accidental liquid damage & I would take a quick look at the internals for signs of liquid damage. This is from over 25 years of experience repairing Macs. I cannot tell you the number of times people said there has been no liquid spills, but I still find conclusive evidence for it. I always tell them, that maybe you didn't have any accidents, but someone else may have & was too embarrassed to inform you.


While typing this, I realized there is a possibility the Lid Angle Sensor is bad. I know that it can cause some odd issues as well. I don't know if the diagnostics would necessarily catch this failure...perhaps if the Apple tech had actually run the Lid Angle Sensor test, but many may only run the MRI test which doesn't really do more than make sure it can identify various hardware components these days. I know we've had to replace a lot of these Lid Angle Sensors due to them failing & causing odd system behavior.


You can try testing the Lid Angle Sensor to see if it is functioning properly. Close the display clamshell lid & wait a minute or two. Then open the lid. This should have triggered the laptop to go to sleep so you should have to log in again (assuming you don't have auto login enabled). You can check if closing the lid triggered sleep by running the following command in the Terminal app afterwards:

pmset  -g  log  |  grep  -iE  'Sleep  |Wake  '  |  grep  -iE  "^$(date "+%Y-%m-%d %H:")"  |  tail  -n2


It is best to just copy & paste this command since parts of this command must be exact or it won't work or give the intended result. Press the "Return" key to submit/execute the command after pasting it into the Terminal app.


If the Lid Angle Sensor is working, then it should produce just two lines with something like:

2025-11-13 23:28:43 -0500 Sleep     Entering Sleep state due to 'Clamshell Sleep':TCPKeepAlive=active Using AC (Charge:100%) 9 secs    
2025-11-13 23:28:52 -0500 Wake      Wake from Deep Idle [CDNVA] : due to smc.sysState.Wake(0x70070000) lid SMC.OutboxNotEmpty/UserActivity Assertion Using AC (Charge:100%) 



Here is the output again where the entire output can be seen with word wrapping instead of scrolling (I added a blank line to make it easier to read):

2025-11-13 23:28:43 -0500 Sleep         Entering Sleep state due to 'Clamshell Sleep':TCPKeepAlive=active Using AC (Charge:100%) 9 secs
  
2025-11-13 23:28:52 -0500 Wake         Wake from Deep Idle [CDNVA] : due to smc.sysState.Wake(0x70070000) lid SMC.OutboxNotEmpty/UserActivity Assertion Using AC (Charge:100%) 


Check the time stamp to make sure it matches the exact time when you closed & opened the lid to ensure the information is related to the test. If the Lid Angle Sensor did not work, then you may still see two lines for a Sleep & Wake event, but initiated by other means at some earlier time. Notice the "Clamshell Sleep" and the "lid" shown in the sample output (I put them in bold in the word wrapped output since I cannot highlight text in the scrolling versioin). This shows the Lid Angle Sensor worked to initiate sleep and also to wake the laptop. Any other reasons shown in the "due to" message means the Lid Angle Sensor did not do its job.


1 reply
Question marked as Top-ranking reply

Nov 13, 2025 8:57 PM in response to longlost53

longlost53 wrote:

I've been to genius bar and they said computer doesn't recognize the keyboard (internal).

What did the Apple tech/agent actually say about it? Sounds like they should have either performed a clean install or provided you with a repair estimate.


Another probem that's popped up is automatic restart after I shut this laptop down. Can't get that stopped. So, It goes to sleep then restarts and runs down the battery if not plugged in.

The two issues may be related. What did the Apple tech/agent say about this problem.


I've tried suggestions I've seen online but so far no luck.
Any ideas for a fix?

No since we don't know exactly what the Apple tech/agent told you about the laptop, nor what Apple & you have already tried. We don't want to waste time repeating things.


If you came to me with your laptop....with everything you have mentioned here, I would be highly suspicious of accidental liquid damage & I would take a quick look at the internals for signs of liquid damage. This is from over 25 years of experience repairing Macs. I cannot tell you the number of times people said there has been no liquid spills, but I still find conclusive evidence for it. I always tell them, that maybe you didn't have any accidents, but someone else may have & was too embarrassed to inform you.


While typing this, I realized there is a possibility the Lid Angle Sensor is bad. I know that it can cause some odd issues as well. I don't know if the diagnostics would necessarily catch this failure...perhaps if the Apple tech had actually run the Lid Angle Sensor test, but many may only run the MRI test which doesn't really do more than make sure it can identify various hardware components these days. I know we've had to replace a lot of these Lid Angle Sensors due to them failing & causing odd system behavior.


You can try testing the Lid Angle Sensor to see if it is functioning properly. Close the display clamshell lid & wait a minute or two. Then open the lid. This should have triggered the laptop to go to sleep so you should have to log in again (assuming you don't have auto login enabled). You can check if closing the lid triggered sleep by running the following command in the Terminal app afterwards:

pmset  -g  log  |  grep  -iE  'Sleep  |Wake  '  |  grep  -iE  "^$(date "+%Y-%m-%d %H:")"  |  tail  -n2


It is best to just copy & paste this command since parts of this command must be exact or it won't work or give the intended result. Press the "Return" key to submit/execute the command after pasting it into the Terminal app.


If the Lid Angle Sensor is working, then it should produce just two lines with something like:

2025-11-13 23:28:43 -0500 Sleep     Entering Sleep state due to 'Clamshell Sleep':TCPKeepAlive=active Using AC (Charge:100%) 9 secs    
2025-11-13 23:28:52 -0500 Wake      Wake from Deep Idle [CDNVA] : due to smc.sysState.Wake(0x70070000) lid SMC.OutboxNotEmpty/UserActivity Assertion Using AC (Charge:100%) 



Here is the output again where the entire output can be seen with word wrapping instead of scrolling (I added a blank line to make it easier to read):

2025-11-13 23:28:43 -0500 Sleep         Entering Sleep state due to 'Clamshell Sleep':TCPKeepAlive=active Using AC (Charge:100%) 9 secs
  
2025-11-13 23:28:52 -0500 Wake         Wake from Deep Idle [CDNVA] : due to smc.sysState.Wake(0x70070000) lid SMC.OutboxNotEmpty/UserActivity Assertion Using AC (Charge:100%) 


Check the time stamp to make sure it matches the exact time when you closed & opened the lid to ensure the information is related to the test. If the Lid Angle Sensor did not work, then you may still see two lines for a Sleep & Wake event, but initiated by other means at some earlier time. Notice the "Clamshell Sleep" and the "lid" shown in the sample output (I put them in bold in the word wrapped output since I cannot highlight text in the scrolling versioin). This shows the Lid Angle Sensor worked to initiate sleep and also to wake the laptop. Any other reasons shown in the "due to" message means the Lid Angle Sensor did not do its job.


Non-functioning keyboard on Macbook Air 2022

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.