-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Unrud
committed
Oct 14, 2015
1 parent
083c365
commit 538ad7c
Showing
26 changed files
with
311 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
file="`readlink -m "$0"`" | ||
home="`dirname "$file"`" | ||
cd "$home" | ||
|
||
for s in package-*/build.sh; do | ||
"$s" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
file="`readlink -m "$0"`" | ||
home="`dirname "$file"`" | ||
cd "$home" | ||
|
||
package="init-headphone" | ||
version="`grep -o -P -m 1 "\(.*\)" debian/changelog | tr -d "()"`" | ||
temp="`mktemp -d`" | ||
mkdir "$temp/$package-$version" | ||
cp -ar * ../src "$temp/$package-$version" | ||
cd "$temp/$package-$version" | ||
dpkg-buildpackage -us -uc | ||
cd "$home" | ||
cp "$temp"/*.deb .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
init-headphone (0.10.0-trusty) stable; | ||
|
||
* recognize more i2c bus names | ||
|
||
-- Unrud <unrud@openaliasbox.org> Wed, 14 Oct 2015 09:18:29 +0200 | ||
|
||
init-headphone (0.9.0-trusty) unstable; | ||
|
||
* remove model check | ||
|
||
-- Unrud <unrud@openaliasbox.org> Sun, 27 Sep 2015 09:18:29 +0200 | ||
|
||
init-headphone (0.8.0-trusty) unstable; | ||
|
||
* use baseboard product name instead of system product name to identify model | ||
* model communication with device after newer versions of the Windows driver | ||
* add lots of supposedly supported models | ||
* add ability to skip model check | ||
* improved help | ||
* improved logging | ||
|
||
-- Unrud <unrud@openaliasbox.org> Sat, 11 Jul 2015 22:54:38 +0200 | ||
|
||
init-headphone (0.6.0-trusty) unstable; | ||
|
||
* Add Eurocom M4 to supported systems | ||
|
||
-- Unrud <unrud@openaliasbox.org> Mon, 22 Jun 2015 21:08:40 +0200 | ||
|
||
init-headphone (0.5.0-trusty) unstable; | ||
|
||
* Add W230SD to supported systems | ||
|
||
-- Unrud <unrud@openaliasbox.org> Tue, 02 Jun 2015 13:59:35 +0200 | ||
|
||
init-headphone (0.4.0-trusty) unstable; | ||
|
||
* Remove dependency on python-smbus | ||
|
||
-- Unrud <unrud@openaliasbox.org> Sun, 10 May 2015 08:53:03 +0200 | ||
|
||
init-headphone (0.3.0-trusty) unstable; | ||
|
||
* Add mute/unmute and effects | ||
* Add "Mythlogic Chaos 1313-A" and "HUMA H3" to supported products | ||
|
||
-- Unrud <unrud@openaliasbox.org> Sun, 26 April 2015 23:06:12 +0200 | ||
|
||
init-headphone (0.2.0) unstable; | ||
|
||
* Add Upstart script to run program on boot | ||
* Make program more verbose | ||
|
||
-- Unrud <unrud@openaliasbox.org> Mon, 30 March 2015 14:31:41 +0200 | ||
|
||
init-headphone (0.1.0) unstable; | ||
|
||
* Initial Release. | ||
|
||
-- Unrud <unrud@openaliasbox.org> Sun, 29 March 2015 23:46:21 +0200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Source: init-headphone | ||
Maintainer: Unrud <unrud@openaliasbox.org> | ||
|
||
Package: init-headphone | ||
Architecture: all | ||
Priority: optional | ||
Depends: python | ||
Description: Manage the headphone amplifier found in some Clevo laptops |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
src/init-headphone /usr/sbin/ | ||
pm-sleep/* /etc/pm/sleep.d/ | ||
grub/* /etc/default/grub.d/ | ||
modules-load/* /etc/modules-load.d/ | ||
init/* /etc/init/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
|
||
NOTIFIER="/usr/share/update-notifier/notify-reboot-required" | ||
|
||
case "${1:-}" in | ||
configure|reconfigure) | ||
if type update-grub; then | ||
update-grub || true | ||
fi | ||
if [ -x "$NOTIFIER" ]; then | ||
"$NOTIFIER" || true | ||
fi | ||
;; | ||
|
||
*) :;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
case "${1:-}" in | ||
remove) | ||
if type update-grub; then | ||
update-grub || true | ||
fi | ||
;; | ||
|
||
*) :;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/make -f | ||
# -*- makefile -*- | ||
|
||
# Uncomment this to turn on verbose mode. | ||
#export DH_VERBOSE=1 | ||
|
||
%: | ||
dh $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT acpi_enforce_resources=lax" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
description "Enable headphone jack on Clevo W230SS" | ||
start on runlevel [2345] | ||
exec /usr/sbin/init-headphone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
i2c-i801 | ||
i2c-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
if [ ! -x /usr/sbin/init-headphone ]; then | ||
exit 0 | ||
fi | ||
|
||
case $1 in | ||
resume|thaw) | ||
/usr/sbin/init-headphone | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
file="`readlink -m "$0"`" | ||
home="`dirname "$file"`" | ||
cd "$home" | ||
|
||
package="init-headphone" | ||
version="`grep -o -P -m 1 "\(.*\)" debian/changelog | tr -d "()"`" | ||
temp="`mktemp -d`" | ||
mkdir "$temp/$package-$version" | ||
cp -ar * ../src "$temp/$package-$version" | ||
cd "$temp/$package-$version" | ||
dpkg-buildpackage -us -uc | ||
cd "$home" | ||
cp "$temp"/*.deb .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
init-headphone (0.10.0-vivid) stable; | ||
|
||
* recognize more i2c bus names | ||
|
||
-- Unrud <unrud@openaliasbox.org> Wed, 14 Oct 2015 09:18:29 +0200 | ||
|
||
init-headphone (0.9.0-vivid) unstable; | ||
|
||
* remove model check | ||
|
||
-- Unrud <unrud@openaliasbox.org> Sun, 27 Sep 2015 09:18:29 +0200 | ||
|
||
init-headphone (0.8.0-vivid) unstable; | ||
|
||
* use baseboard product name instead of system product name to identify model | ||
* model communication with device after newer versions of the Windows driver | ||
* add lots of supposedly supported models | ||
* add ability to skip model check | ||
* improved help | ||
* improved logging | ||
|
||
-- Unrud <unrud@openaliasbox.org> Sat, 11 Jul 2015 22:54:38 +0200 | ||
|
||
init-headphone (0.6.0-vivid) unstable; | ||
|
||
* Add Eurocom M4 to supported systems | ||
|
||
-- Unrud <unrud@openaliasbox.org> Mon, 22 Jun 2015 21:08:40 +0200 | ||
|
||
init-headphone (0.5.0-vivid) unstable; | ||
|
||
* Add W230SD to supported systems | ||
|
||
-- Unrud <unrud@openaliasbox.org> Tue, 02 Jun 2015 13:59:35 +0200 | ||
|
||
init-headphone (0.4.0-vivid) unstable; | ||
|
||
* Remove dependency on python-smbus | ||
|
||
-- Unrud <unrud@openaliasbox.org> Sun, 10 May 2015 08:53:03 +0200 | ||
|
||
init-headphone (0.3.0-vivid) unstable; | ||
|
||
* Add mute/unmute and effects | ||
* Use systemd instead of Upstart | ||
* Add "Mythlogic Chaos 1313-A" and "HUMA H3" to supported products | ||
|
||
-- Unrud <unrud@openaliasbox.org> Sun, 26 April 2015 23:06:12 +0200 | ||
|
||
init-headphone (0.2.0) unstable; | ||
|
||
* Add Upstart script to run program on boot | ||
* Make program more verbose | ||
|
||
-- Unrud <unrud@openaliasbox.org> Mon, 30 March 2015 14:31:41 +0200 | ||
|
||
init-headphone (0.1.0) unstable; | ||
|
||
* Initial Release. | ||
|
||
-- Unrud <unrud@openaliasbox.org> Sun, 29 March 2015 23:46:21 +0200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Source: init-headphone | ||
Maintainer: Unrud <unrud@openaliasbox.org> | ||
|
||
Package: init-headphone | ||
Architecture: all | ||
Priority: optional | ||
Depends: python | ||
Description: Manage the headphone amplifier found in some Clevo laptops |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
src/init-headphone /usr/sbin/ | ||
grub/* /etc/default/grub.d/ | ||
modules-load/* /etc/modules-load.d/ | ||
systemd/* /lib/systemd/system/ | ||
systemd-links/* /etc/systemd/system/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
|
||
NOTIFIER="/usr/share/update-notifier/notify-reboot-required" | ||
MODULES_BLACKLIST="/etc/modprobe.d/blacklist.conf" | ||
|
||
case "${1:-}" in | ||
configure|reconfigure) | ||
if type update-grub; then | ||
update-grub || true | ||
fi | ||
if [ -x "$NOTIFIER" ]; then | ||
"$NOTIFIER" || true | ||
fi | ||
|
||
if [ -f "$MODULES_BLACKLIST" ]; then | ||
t="$(sed "s/^blacklist i2c_i801$/#\0 # Commented out by init-headphone/" "$MODULES_BLACKLIST")" | ||
echo -n "$t" >"$MODULES_BLACKLIST" | ||
fi | ||
;; | ||
|
||
*) :;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
|
||
MODULES_BLACKLIST="/etc/modprobe.d/blacklist.conf" | ||
|
||
case "${1:-}" in | ||
remove) | ||
if type update-grub; then | ||
update-grub || true | ||
fi | ||
|
||
if [ -f "$MODULES_BLACKLIST" ]; then | ||
t="$(sed "s/^#blacklist i2c_i801 # Commented out by init-headphone$/blacklist i2c_i801/" "$MODULES_BLACKLIST")" | ||
echo -n "$t" >"$MODULES_BLACKLIST" | ||
fi | ||
;; | ||
|
||
*) :;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/make -f | ||
# -*- makefile -*- | ||
|
||
# Uncomment this to turn on verbose mode. | ||
#export DH_VERBOSE=1 | ||
|
||
%: | ||
dh $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT acpi_enforce_resources=lax" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
i2c-i801 | ||
i2c-dev |
1 change: 1 addition & 0 deletions
1
package-ubuntu-vivid/systemd-links/hibernate.target.wants/init-headphone.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/lib/systemd/system/init-headphone.service.link |
1 change: 1 addition & 0 deletions
1
package-ubuntu-vivid/systemd-links/hybrid-sleep.target.wants/init-headphone.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/lib/systemd/system/init-headphone.service.link |
1 change: 1 addition & 0 deletions
1
package-ubuntu-vivid/systemd-links/multi-user.target.wants/init-headphone.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/lib/systemd/system/init-headphone.service.link |
1 change: 1 addition & 0 deletions
1
package-ubuntu-vivid/systemd-links/suspend.target.wants/init-headphone.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/lib/systemd/system/init-headphone.service.link |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[Unit] | ||
Description=Enable headphone jack on Clevo W230SS after suspend | ||
After=suspend.target | ||
After=hibernate.target | ||
After=hybrid-sleep.target | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/usr/sbin/init-headphone | ||
|
||
[Install] | ||
WantedBy=suspend.target | ||
WantedBy=hibernate.target | ||
WantedBy=hybrid-sleep.target | ||
WantedBy=multi-user.target |