I am working on Jetson TX2 NX. PIN NO ;240 SLEEP/WAKE# of Jetson TX2 NX is interfaced with a controller GPIO pin to wake the jetson from sleep mode.To move Jetson to sleep mode I am using sudo systemctl suspend command.And upon a specific activity,controller will give a low from high to wake up jetson and make the state back to high.Using the command jetson sleep is working fine and using SLEEP/WAKE# to wake up jetson from controller is also working fine.But If jetson is up and active and sudden high to low transition from controller power down the Jetson. Jetson SHUTDOWN_REQ goes to low from high .Is this expected behavior or can we correct it?
Thank you for the quick response.I am testing on a custom design board.In my case a low signal of SLEEP/WAKE# pin when nvidia is awake is causing power down.Can we keep the nvidia as such without power down and sleep in this case.Because I am using that pin only for waking up nvidia if nvidia is in sleep[by issuing the sleep command]?
I’ve come across another observation. In an attempt to reduce boot time, I made use of the following Linux command to disable the desktop manager:
sudo systemctl set-default multi-user.target
Upon re-enabling the desktop manager, I’ve noticed that the power-down issue with Nvidia, specifically when transitioning from high to low or low to high signal from controller while Nvidia is active, seems to have been resolved. However, I’m seeking clarity on the correlation between the NVIDIA Sleep/Wake functionality and the desktop manager. As previously mentioned, my requirement for the sleep/wake pin is solely intended for waking up NVIDIA if it happens to be in sleep mode. Other transitions should not prompt NVIDIA to power down or enter sleep mode. Could this be achieved with the desktop manager disabled?
I have tried the below dtsi configuration for configuring SLEEP/WAKE# pin of NVIDIA as wake pin only
No.Wake functionality is working when SLEEP/WAKE# was configured as KEY_POWER.but if nvidia is active and low to high or high to low pulse causing the shutdown of nvidia when nvidia desktop manager is disabled sudo systemctl set-default multi-user.target
.I have to remove desktop manager as it is taking much time to boot up nvidia.
In my custom board , SLEEP/WAKE# pin of Jetson TX2 NX is connected to a GPIO Pin of Micro controller. If Jetson is in sleep[sudo systemctl suspend command is using to put Jetson TX2 NX in sleep mode], wake functionality is working upon giving an active low signal from controller in both desktop enabled and disabled case.
But if Jetson is awake and low to high or high to low pulse from controller causing Jetson to shutdown[ This is happening only when desktop manager is disabled].
Sorry .Unfortunately, I couldn’t test this on NX dev kit due to the unavailability of the developer kit . Despite this limitation, I attempted to replicate the conditions using an alternative custom board featuring Xavier NX. The shutdown issue persisted even after disabling the desktop manager.
Change the gpio-keys from linux,code = <KEY_POWER> to <KEY_WAKEUP>
result: press button will lead to direct power off.
if device is in suspend mode, this will trigger wake up.
if device does not disable GUI, and not in suspend mode, it will trigger sleep but not power off?
result: system directly goes to power down.
But wake up is working fine if above situation is suspend mode.
If GUI is enabled, then system won’t go to power down. What would you see there? A hint on screen to ask whether you want to shutdown?
If GUI is enabled, then system won’t go to power down. What would you see there? A hint on screen to ask whether you want to shutdown?
Ans : There is no hdmi support for my custom board . But from systemd-logind service I am getting a print as “power-key pressed” if desktop is enabled.if desktop is disabled i am not getting even that print directly going to shutdown