简体   繁体   中英

Setting dpms in Awesome WM

If I do the following from terminal, then the screen turns off after 10 seconds of inactivity, as I expect.

xset +dpms dpms 0 0 10

However, if I try to do the same from init.lua , then it does not work.

awful.spawn("xset +dpms dpms 0 0 10")

I even tried awful.spawn.with_shell() , but it still doesn't work.

Of course, I plan to use a higher timeout, but first I just want it to work.

用lua命令os.execute()替换awful.spawn()命令。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM