-rw-r--r-- | libopie2/opiecore/device/odevice.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libopie2/opiecore/device/odevice.cpp b/libopie2/opiecore/device/odevice.cpp index 280b0c5..2355621 100644 --- a/libopie2/opiecore/device/odevice.cpp +++ b/libopie2/opiecore/device/odevice.cpp | |||
@@ -319,7 +319,11 @@ bool ODevice::setDisplayStatus ( bool on ) | |||
319 | bool res = false; | 319 | bool res = false; |
320 | int fd; | 320 | int fd; |
321 | 321 | ||
322 | #ifdef QT_QWS_DEVFS | ||
323 | if (( fd = ::open ( "/dev/fb/0", O_RDWR )) >= 0 ) { | ||
324 | #else | ||
322 | if (( fd = ::open ( "/dev/fb0", O_RDWR )) >= 0 ) { | 325 | if (( fd = ::open ( "/dev/fb0", O_RDWR )) >= 0 ) { |
326 | #endif | ||
323 | res = ( ::ioctl ( fd, FBIOBLANK, on ? VESA_NO_BLANKING : VESA_POWERDOWN ) == 0 ); | 327 | res = ( ::ioctl ( fd, FBIOBLANK, on ? VESA_NO_BLANKING : VESA_POWERDOWN ) == 0 ); |
324 | ::close ( fd ); | 328 | ::close ( fd ); |
325 | } | 329 | } |