Bug#667821: eeepc-acpi-scripts: SHEngine notifications are not displayed

2014-04-26 Thread Hans-J. Ullrich
Hi all!
Same here on my EEEPC 1005HGO.

This is no more working since the change to libnotify. 
Please note, I am using the kernel-module eeepc-laptop and have to add the 
well known acpi_osi=Linux addition into grub.

Have fun!

Hans


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#667821: eeepc-acpi-scripts: SHEngine notifications are not displayed

2012-04-06 Thread Alexander Inyukhin
Package: eeepc-acpi-scripts
Version: 1.1.12
Severity: normal
Tags: patch

The notify-send fails to display some notifications due to missing whitespace 
escaping of arguments.
Attached patch fixes problem for SHEngine notifications.

Another solution is to add additional quotes around $2 in line 38 of 
notify.sh like this 
 su $user -c notify-send\ -i\ $ICON\ \$2\
but this sligthly changes overall behaviour as whole message goes into header.

-- System Information:
Debian Release: 6.0.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (193, 'testing'), (192, 
'unstable'), (190, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to ru_RU.UTF-8)
Shell: /bin/sh linked to /bin/dash
diff --git a/acpilib/shengine.sh b/acpilib/shengine.sh
index 3763dec..39f7d77 100644
--- a/acpilib/shengine.sh
+++ b/acpilib/shengine.sh
@@ -66,11 +66,11 @@ handle_shengine() {
 	fi
 	if [ $2 != '' ]; then return; fi
 	case $(get_shengine) in
-	0) notify super_hybrid_engine 'S. H. Engine: Performance'; ;;
-	1) notify super_hybrid_engine 'S. H. Engine: Standard'; ;;
-	2) notify super_hybrid_engine 'S. H. Engine: Power-saving'; ;;
-	255) notify super_hybrid_engine 'S. H. Engine: Automatic'; ;;
-	*) notify error 'S. H. Engine unavailable'
+	0) notify super_hybrid_engine 'S.\ H.\ Engine Performance'; ;;
+	1) notify super_hybrid_engine 'S.\ H.\ Engine Standard'; ;;
+	2) notify super_hybrid_engine 'S.\ H.\ Engine Power-saving'; ;;
+	255) notify super_hybrid_engine 'S.\ H.\ Engine Automatic'; ;;
+	*) notify error 'S.\ H.\ Engine unavailable'
 	esac
 else
 	notify error 'S. H. Engine unavailable'