$TERM set to "dumb" causes problems with suspend
Posted
by
julkiewicz
on Ask Ubuntu
See other posts from Ask Ubuntu
or by julkiewicz
Published on 2011-11-19T11:48:43Z
Indexed on
2011/11/21
2:07 UTC
Read the original article
Hit count: 508
I've just upgraded from 11.04 to 11.10. So far I love it, everything seems just so much snappier.
Now I just have one minor issue. When I try to suspend my laptop, it doesn't work - instead it fades out the screen, blocks it and then instantly wakes back.
I've checked the logs in /var/log/pm-suspend.log and this fragment seems relevant:
/usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00clear suspend suspend:
TERM environment variable not set.
/usr/lib/pm-utils/sleep.d/00clear suspend suspend: Returned exit code 1.
Sat Nov 19 12:23:20 CET 2011: Inhibit found, will not perform suspend
Sat Nov 19 12:23:20 CET 2011: Running hooks for resume
The mentioned script at /usr/lib/pm-utils/sleep.d/00clear reads:
#!/bin/bash
clear
When I open a terminal anywhere by hand, $TERM is set to either "linux" or "xterm". However somehow when the 00clear command is executed $TERM is set to "dumb".
Two questions:
- What is the correct value for $TERM when running 00clear script?
- Where can I set it up?
I've looked for solutions on the web, however I could only find information on how to configure $TERM in a regular terminal (and this one is set properly).
© Ask Ubuntu or respective owner