apm -d also needs a writable file descriptor.
This commit is contained in:
parent
3c43673046
commit
90b09c328d
@ -412,7 +412,7 @@ main(int argc, char *argv[])
|
||||
argv += optind;
|
||||
}
|
||||
finish_option:
|
||||
if (haltcpu != -1 || enable != -1 || delta || sleep || standby)
|
||||
if (haltcpu != -1 || enable != -1 || display != -1 || delta || sleep || standby)
|
||||
fd = open(APMDEV, O_RDWR);
|
||||
else
|
||||
fd = open(APMDEV, O_RDONLY);
|
||||
|
Loading…
x
Reference in New Issue
Block a user