I have made the following changes intended for : CE:Adaptation:N900 / nokia-n900-configs
Please review and accept ASAP - BOSS has already processed this request and suggests ??? See the "Messages from BOSS" section below https://build.pub.meego.com/request/show/2622 Thank You, bossbot ([email protected]) [This message was auto-generated] --- Request # 2622: Messages from BOSS: None State: new 2011-10-24T12:25:04 bossbot Reviews: from bossbot :BOSS suggests accepting this review. See email for more details. BOSS accepted this review because: Target repo CE_Mer_Core_armv7hl found. SKIPPED check_package_is_complete_tarball (nokia-n900-configs) accepted on No date Changes: submit: home:stskeeps:mer:hw:n900 / nokia-n900-configs -> CE:Adaptation:N900 / nokia-n900-configs Index: nokia-n900-input-rules.conf =================================================================== --- nokia-n900-input-rules.conf (revision 0) +++ nokia-n900-input-rules.conf (revision 3) @@ -0,0 +1,24 @@ +Section "InputClass" + Identifier "Touchscreen" + MatchProduct "TSC2005 touchscreen" + Option "Calibration" "200 3910 3761 180" + Option "SendCoreEvents" "On" + Driver "evdev" +EndSection + +Section "InputClass" + Identifier "Keyboard" + MatchProduct "TWL4030 Keypad|gpio-keys" + Option "XkbModel" "nokiarx51" + Option "CoreKeyboard" "On" + Option "XkbLayout" "us" + Option "XkbOptions" "grp:ctrl_shift_toggle" + Option "XkbVariant" ",qwerty" + Driver "evdev" +EndSection + +Section "InputClass" + Identifier "disable accelerometer" + MatchProduct "Accelerometer" + Option "Ignore" "on" +EndSection Index: n900-setbacklight.sh =================================================================== --- n900-setbacklight.sh (revision 0) +++ n900-setbacklight.sh (revision 3) @@ -0,0 +1,12 @@ +#!/bin/sh + +BRIGHTNESS_SYSFS_PATH="/sys/class/backlight/acx565akm/brightness" + +if [ $# -ne 1 ]; then + echo "Usage: $0 <brightness>" + exit 1 +fi + +echo $1 > $BRIGHTNESS_SYSFS_PATH + +exit $? Index: nokia-n900-keys.map =================================================================== --- nokia-n900-keys.map (revision 0) +++ nokia-n900-keys.map (revision 3) @@ -0,0 +1,69 @@ +keymaps 0-2,4 +# +keycode 14 = Delete +keycode 16 = q + altgr keycode 16 = one +keycode 17 = w + altgr keycode 17 = two +keycode 18 = e + altgr keycode 18 = three +keycode 19 = r + altgr keycode 19 = four +keycode 20 = t + altgr keycode 20 = five +keycode 21 = y + altgr keycode 21 = six +keycode 22 = u + altgr keycode 22 = seven +keycode 23 = i + altgr keycode 23 = eight +keycode 24 = o + altgr keycode 24 = nine +keycode 25 = p + altgr keycode 25 = zero +keycode 28 = Return +keycode 29 = Control + altgr keycode 29 = Escape +keycode 30 = a + altgr keycode 30 = asterisk +keycode 31 = s + altgr keycode 31 = plus +keycode 32 = d + altgr keycode 32 = numbersign +keycode 33 = f + altgr keycode 33 = minus +keycode 34 = g + altgr keycode 34 = underscore +keycode 35 = h + altgr keycode 35 = parenleft +keycode 36 = j + altgr keycode 36 = parenright +keycode 37 = k + altgr keycode 37 = ampersand +keycode 38 = l + altgr keycode 38 = exclam +keycode 42 = Shift +keycode 44 = z + altgr keycode 44 = bar +keycode 45 = x + altgr keycode 45 = dollar +keycode 46 = c + altgr keycode 46 = percent +keycode 47 = v + altgr keycode 47 = slash +keycode 48 = b + altgr keycode 48 = backslash +keycode 49 = n + altgr keycode 49 = quotedbl +keycode 50 = m + altgr keycode 50 = apostrophe +keycode 51 = comma semicolon equal +keycode 52 = period colon question +keycode 57 = space Tab at +keycode 100 = AltGr +keycode 103 = Up +keycode 105 = Left + altgr keycode 105 = less +keycode 106 = Right + altgr keycode 106 = greater +keycode 108 = Down Index: nokia-n900-configs.changes =================================================================== --- nokia-n900-configs.changes (revision 0) +++ nokia-n900-configs.changes (revision 3) @@ -0,0 +1,169 @@ +* Fri Sep 02 2011 Marko Saukko <[email protected]> - 0.7.1 +- ttyO2 setup is now a separate package so removed it from this configs package. + +* Wed Jun 01 2011 Marko Saukko <[email protected]> - 0.7.0 +- Initial changes from sysvinit to systemd (FEA#16109). + +* Thu Apr 28 2011 Marko Saukko <[email protected]> - 0.6.20 +- Renamed n900-qt-config.sh to n900-qt-mtf-config.sh and added QT_GRAPHICSSYSTEM + export (BMC#16660). + +* Wed Apr 13 2011 Joonas Tanskanen <[email protected]> - 0.6.19 +- n900-qt-config.sh added. The script adds QT_USE_DRAG_DISTANCE + environment variable for BMC#15323 + +* Wed Mar 30 2011 Carsten Munk <[email protected]> - 0.6.18 +- BMC#12714 - Texas Instruments OMAP3 SoC does not enter deeper power saving states +- Refactor init scripts into nokia-n900-setup init script. +- Followup to BMC#14201, need this for proper keyboard map handling. + +* Mon Mar 21 2011 Sami Sirkia <[email protected]> - 0.6.17 +- Removed /etc/skel/.pulse/default.pa and dependencies as unnecessary. + It was moved to pulseaudio-settings-n900 as /etc/pulse/arm_nokia_rx_51_board.pa +- Removed dependency to udev-rules-nokia-n900 as it is part of the package group. +- Removed dependency to uxlaunch as unnecessary. +- Added dependency to xorg-x11-xkb-utils required by nokia-n900-keypad.desktop . + +* Mon Mar 7 2011 Sami Sirkia <[email protected]> - 0.6.16 +- Fixes BMC#14406, Removed /etc/asound_n900.state, init.d/n900-alsamixer-settings. + Alsa settings are initialized and handled by resource policy. +- Removed /usr/bin/n900-alsamixer-set-*.sh as unnecessary. +- Removed dependency for alsa-utils and alsa-plugins-pulseaudio. + +* Fri Mar 4 2011 Sami Sirkia <[email protected]> - 0.6.15 +- Partial fix for BMC#8108: [N900] Volume control does not work + Added loading of module-meego-mainvolume to default.pa + +* Tue Feb 25 2011 Sami Sirkia <[email protected]> - 0.6.14 +- Added missing pulseaudio loading for module-meego-music and module-meego-record. +- This does not require the modules, which will be added to the image soon. + +* Mon Jan 03 2011 Marko Saukko <[email protected]> - 0.6.13 +- Added spectacle support and did some cleanup. + +* Thu Dec 31 2010 Teemu Tuominen <[email protected]> - 0.6.12 +- Updated pipelines.conf according to new upstream version + +* Tue Dec 28 2010 Sami Sirkia <[email protected]> - 0.6.11 +- Used correct order of audio paths to make IHF as default. +- Addressed sink by its name not by a number. + +* Mon Dec 20 2010 Sami Sirkia <[email protected]> - 0.6.10 +- This is part of fullfilling FEA#6701 +- Other parts will come from devel:resourcepolicy +- Requires pulseaudio-0.9.19 +- Added policyconfig paths into /home/meego/.pulse/default.pa +- Removed loading of audio-test-server in default.pa as unnecessary +- Commented out modules that will not work with pulseaudio 0.9.19 +- Updated /etc/asound_n900.state + +* Thu Dec 2 2010 Teemu Tuominen <[email protected]> - 0.6.9 +- Added /etc/camera/pipelines.conf +- few cleanup tricks with spec-file + +* Thu Oct 26 2010 Jouni Peltonen <[email protected]> - 0.6.8.2 +- Default.pa changed to include alsa_sink_old (sink.hw0) as new default sink. +- Default.pa changed to include alsa_source_old (source.hw0) as new default source. +- Fragment sizes for alsa_sink_old changed to work better with call audio and + video audio. Primary fragment size is used for normal playback and alternative + fragment size is for call audio. Part of the fix for BMC#8423, BMC#8428 and BMC#8605. + +* Thu Oct 21 2010 Marko Saukko <[email protected]> - 0.6.8.1 +- Removed the btrfs readahead_kb hack. This will be fix elsewhere for 1.2. + +* Sun Oct 18 2010 Marko Saukko <[email protected]> - 0.6.8 +- Merged fixes from 1.1 branch. +- Set package to "ExclusiveArch: %{arm}" + +* Sun Oct 17 2010 Carsten Munk <[email protected]> - 0.6.7.2 +- Set btrfs readahead_kb to 0kb on boot. 4mb is way too tough for N900 MMC + CPU. + This fixes serious performance problems in Fennec-qt for N900, BMC#8582 + Thanks to stephg for figuring out the problem. + +* Thu Oct 14 2010 Marko Saukko <[email protected]> - 0.6.7.1 +- Rebased default.pa to /etc/pulseaudio/default.pa and changed default route to fix BMC#8428 + +* Tue Oct 6 2010 Sami Sirkia <[email protected]> - 0.6.7 +- Added call audio quality related module loading into default.pa. +- Changed package into noarch by using: "ExclusiveArch: %{arm} noarch" + +* Mon Oct 4 2010 Carsten Munk <[email protected]> - 0.6.6 +- Add Option "SendCoreEvents" "On" to touchscreen Xorg config as in Aava configs. + +* Mon Sep 20 2010 Markus Lehtonen <[email protected]> - 0.6.5 +- modify .desktop file of backlight hack to work with uxlaunch + (related to BMC#6091) + +* Fri Sep 17 2010 Carsten Munk <[email protected]> - 0.6.4 +- Add support for cell modem powerup and audio settings. Part of implementation + for FEA#4134 FEA#4135 FEA#4136 on ARM (Dialer - Make a Call, Receive a Call, End Call). + +* Wed Sep 8 2010 Topi Santakivi <[email protected]> - 0.6.3 +- Added .nofail and .fail statements to loading of alsasrc/sink + +* Wed Sep 8 2010 Topi Santakivi <[email protected]> - 0.6.2 +- If alsasink/src are loaded in default.pa, pulseaudio fails + to start properly and that prevents audio/video playback + related use cases. BMC#5419 BMC#6372. + +* Tue Sep 7 2010 Markus Lehtonen <[email protected]> - 0.6.1 +- backlight hack: add a .desktop file that forces backlight brightness up + when X starts. Part of fix for BMC#6091 + +* Thu Aug 19 2010 Markus Lehtonen <[email protected]> - 0.6 +- Remove default evdev rule in n900-input-rules. It caused problems in + some cases apparently because there already is an identical (duplicate) + rule in MeeGo's '00-input-default.conf'. + +* Thu Jul 29 2010 Pekka Pessi <[email protected]> - 0.5.9 +- Added setup script for n900 modem control gpio lines + +* Thu Jul 29 2010 Sami Sirkia <[email protected]> - 0.5.8 +- Moved /home/meego/.pulse/default.pa to /etc/skel/.pulse/default.pa + +* Tue Jul 27 2010 Sami Sirkia <[email protected]> - 0.5.7 +- Loaded alsasink and source in PA, enabled speaker at startup + /usr/bin/n900-alsamixer-* + +* Wed Jul 14 2010 Marko Saukko <[email protected]> - 0.5.6 +- Added keymap for N900 made by Torne. + +* Mon Jul 12 2010 Ameya Palande <[email protected]> - 0.5.5 +- Remove nokia-n900-wl1251_spi.conf as wl1251_spi driver is fixed for + autoloading + +* Wed Jul 6 2010 Carsten Munk <[email protected]> - 0.5.4 +- Merged Markus Lehtonen's disable autoconfiguration of accelerometers in xorg config + +* Tue Jun 22 2010 Marko Saukko <[email protected]> - 0.5.3 +- Added "ExclusiveArch: %{arm}" + +* Thu Jun 17 2010 Marko Saukko <[email protected]> - 0.5.2 +- Temporary fix for the keypad problems. + +* Thu Jun 03 2010 Marko Saukko <[email protected]> - 0.5.1 +- Fixed keyboard configuration +- Removed uxlaunch file editing, this should be done in .ks level if required. + +* Mon May 10 2010 Kalle Lampila <[email protected]> - 0.5 +- Added wl1251_spi.conf to autoload wl1251_spi kernel module + +* Tue Apr 20 2010 Marko Saukko <[email protected]> - 0.4 +- Removed the uxlaunch init script. This startup is done with + /usr/sbin/moblin-dm file. +- Added devices.conf for libmeegotouch +- Moved nokia-usb-networking init script to nokia-usb-networking package +- Moved audio udev rules to udev-rules-nokia-n900 package. +- Removed .tar.gz package and added each config file as seperate source. + +* Thu Apr 08 2010 Marko Saukko <[email protected]> - 0.3.1 +- Added gpio-keys to n900 input rules for 2.6.33 kernel. + +* Thu Apr 01 2010 Markus Lehtonen <[email protected]> - 0.3 +- Fixes N900 touchscreen issues by changing xorg.configs. + Utilizes Xorgs new inputclass/udev support. + +* Tue Mar 30 2010 Marko Saukko <[email protected]> - 0.2 +- Added uxlaunch and nokia-usb-networking init scripts. + +* Tue Mar 30 2010 Marko Saukko <[email protected]> - 0.1 +- Initial release of configs package for n900. Index: nokia-n900-force-backlight.desktop =================================================================== --- nokia-n900-force-backlight.desktop (revision 0) +++ nokia-n900-force-backlight.desktop (revision 3) @@ -0,0 +1,5 @@ +[Desktop Entry] +Name=N900 force backlight +Exec=/usr/bin/n900-setbacklight.sh 100 +Terminal=False +Type=Application Index: n900-qt-mtf-config.sh =================================================================== --- n900-qt-mtf-config.sh (revision 0) +++ n900-qt-mtf-config.sh (revision 3) @@ -0,0 +1,7 @@ +# Set QT_USE_DRAG_DISTANCE environment variable +# The variable defines default value for QApplication's +# startDragDistance property +export QT_USE_DRAG_DISTANCE=12 + +# Set QT_GRAPHICSSYSTEM to meego for MTF apps. +export QT_GRAPHICSSYSTEM=meego Index: pipelines.conf =================================================================== --- pipelines.conf (revision 0) +++ pipelines.conf (revision 3) @@ -0,0 +1,65 @@ +# +# ISP pipeline configuration file for subdevsrc and mcsrc elements. +# +# Recognized settings: +# "max_resizer_factor:" defines resizer's max scaling factor (type: float) +# "width_modulo:" tells how preview/capture width should be rounded (type: int) +# "height_modulo:" tells how preview/capture height should be rounded (type: int) +# "primary:" defines the primary camera device pipeline +# "primary_continuous:" defines the primary camera pipeline for continuous shooting +# "secondary:" defines secondary camera device pipeline +# +# Pipeline definition utilities: +# "OUT_FORMAT" is mapped to output color format selected by application +# "OUT_SIZE" is mapped to output resolution +# "V4L2_MBUS_FMT_*" forces the color format +# "POOL" connects two pipeline segments together with a buffer pool +# "CAPTUREPOOL" works like POOL and is used for continuous shooting pipelines +# +# Each pipeline definition should start with sensor entity and end to video output node. +# The separator character used in pipeline declarations is exclamation mark (!). +# Pipeline definitions *must* also contain "OUT_FORMAT" keyword, since that is used for +# determining the entity where output pixel formats should be queried. +# +# When pipeline definition contains a mem-to-mem segment, it must be connected by +# using a POOL. Mem-to-mem segment means a pipeline section where frames are read +# out from pipeline through an "output" entity and pushed back to ISP pipeline by using +# an "input" entity. POOL must be always present between output and input entities to +# ensure a proper buffer passing service between them. +# +# Continuous shooting pipeline must contain a CAPTUREPOOL definition. It defines the +# pool which is used for image capturing in continuous shooting mode. +# +# The encoding of this file must be ISO-8859-1. + +# Keyword mappings. These are used to simplify pipeline definitions and +# to automate sensor selection. When multiple entries are found with same keyword, +# subdevsrc will try them one after another, until functional entity is found. + +main = et8ek8 +vga = smia-sensor +csi2 = OMAP3 ISP CSI2a +csi2_out = OMAP3 ISP CSI2a output +ccp2 = OMAP3 ISP CCP2 +ccp2_in = OMAP3 ISP CCP2 input +ccdc = OMAP3 ISP CCDC +prev = OMAP3 ISP preview +prev_out = OMAP3 ISP preview output +rsz_in = OMAP3 ISP resizer input +rsz = OMAP3 ISP resizer +rsz_out = OMAP3 ISP resizer output + +# Settings +max_resizer_factor: 4.0 +width_modulo: 16 +height_modulo: 16 + +# Primary camera pipeline +primary: main ! ccp2 ! V4L2_MBUS_FMT_SGRBG10_1X10 ! ccdc ! prev ! OUT_FORMAT ! rsz ! OUT_SIZE ! rsz_out + +# Primary camera pipeline for continuous shooting +primary_continuous: main ! ccp2 ! V4L2_MBUS_FMT_SGRBG10_1X10 ! ccdc ! prev ! OUT_FORMAT ! prev_out ! CAPTUREPOOL ! rsz_in ! rsz ! OUT_SIZE ! rsz_out +#primary_continuous: main ! csi2 ! V4L2_MBUS_FMT_SGRBG10_1X10 ! csi2_out ! POOL ! ccp2_in ! ccp2 ! ccdc ! prev ! OUT_FORMAT ! prev_out ! CAPTUREPOOL ! rsz_in ! rsz ! OUT_SIZE ! rsz_out + +# Secondary camera pipeline +secondary: vga ! ccp2 ! ccdc ! prev ! OUT_FORMAT ! rsz ! OUT_SIZE ! rsz_out Index: nokia-n900-configs.spec =================================================================== --- nokia-n900-configs.spec (revision 0) +++ nokia-n900-configs.spec (revision 3) @@ -0,0 +1,100 @@ +# +# Do NOT Edit the Auto-generated Part! +# Generated by: spectacle version 0.23 +# +# >> macros +# << macros + +Name: nokia-n900-configs +Summary: Provides configs for Nokia N900 +Version: 0.7.1 +Release: 0 +Group: System/Device Mode Adaptation +License: GPLv2 +ExclusiveArch: %{arm} +Source0: nokia-n900-input-rules.conf +Source1: nokia-n900-keys.map +Source2: %{name}.sh +Source3: nokia-n900-force-backlight.desktop +Source4: n900-setbacklight.sh +Source5: pipelines.conf +Source6: n900-qt-mtf-config.sh +Source7: %{name}.service +Source100: nokia-n900-configs.yaml +Requires: kbd +Requires: systemd +Requires(preun): systemd +Requires(post): systemd +Requires(postun): systemd + + +%description +Provides configs for Nokia N900 device. + + + +%prep +# No setup + +# >> setup +# << setup + +%build +# >> build pre +# << build pre + + + +# >> build post +# << build post +%install +rm -rf %{buildroot} +# >> install pre +# << install pre + +# >> install post +install -D -m 644 %{SOURCE0} $RPM_BUILD_ROOT/etc/X11/xorg.conf.d/90-input-n900.conf +install -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT/lib/kbd/keymaps/arm/qwerty/nokia-n900.map +install -D -m 644 %{SOURCE2} $RPM_BUILD_ROOT/usr/sbin/%{name}.sh +install -D -m 644 %{SOURCE3} $RPM_BUILD_ROOT/etc/xdg/autostart/n900-force-backlight.desktop +install -D -m 755 %{SOURCE4} $RPM_BUILD_ROOT/usr/bin/n900-setbacklight.sh +install -D -m 644 %{SOURCE5} $RPM_BUILD_ROOT/etc/camera/pipelines.conf +install -D -m 755 %{SOURCE6} $RPM_BUILD_ROOT/etc/profile.d/n900-qt-mtf-config.sh +install -D -m 644 %{SOURCE7} $RPM_BUILD_ROOT/lib/systemd/system/%{name}.service +install -d $RPM_BUILD_ROOT/lib/systemd/system/sysinit.target.wants/ +ln -s ../%{name}.service $RPM_BUILD_ROOT/lib/systemd/system/sysinit.target.wants/%{name}.service +# << install post + + +%preun +systemctl stop %{name}.service + +%post +systemctl daemon-reload +systemctl reload-or-try-restart %{name}.service + +%postun +systemctl daemon-reload + + +%files +%defattr(-,root,root,-) +# >> files +%defattr(644,root,root,-) +# Input +%config %{_sysconfdir}/X11/xorg.conf.d/90-input-n900.conf +/lib/kbd/keymaps/arm/qwerty/nokia-n900.map +%attr(755,root,root) /usr/sbin/%{name}.sh +/lib/systemd/system/%{name}.service +/lib/systemd/system/sysinit.target.wants/%{name}.service +# Backlight +%attr(755,root,root) %{_bindir}/n900-setbacklight.sh +# Camera +%attr(644,root,root) %config %{_sysconfdir}/camera/pipelines.conf +# Misc +%attr(644,root,root) %config %{_sysconfdir}/xdg/autostart/n900-force-backlight.desktop +# N900 Qt & MTF configuration +%attr(755,root,root) %{_sysconfdir}/profile.d/n900-qt-mtf-config.sh +# << files + + Index: nokia-n900-configs.yaml =================================================================== --- nokia-n900-configs.yaml (revision 0) +++ nokia-n900-configs.yaml (revision 3) @@ -0,0 +1,25 @@ +Name: nokia-n900-configs +Summary: Provides configs for Nokia N900 +Version: 0.7.1 +Release: 0 +Group: System/Device Mode Adaptation +License: GPLv2 +Sources: + - nokia-n900-input-rules.conf + - nokia-n900-keys.map + - "%{name}.sh" + - nokia-n900-force-backlight.desktop + - n900-setbacklight.sh + - pipelines.conf + - n900-qt-mtf-config.sh + - "%{name}.service" +Description: Provides configs for Nokia N900 device. + +Requires: + # Required by nokia-n900-setup.init + - kbd + +Configure: none +Builder: none +NoSetup: yes +ExclusiveArch: "%{arm}" Index: boss.conf =================================================================== --- boss.conf (revision 0) +++ boss.conf (revision 3) @@ -0,0 +1,2 @@ +[checks] +check_package_is_complete_tarball = skip Index: nokia-n900-configs.sh =================================================================== --- nokia-n900-configs.sh (revision 0) +++ nokia-n900-configs.sh (revision 3) @@ -0,0 +1,70 @@ +#!/bin/bash + +# Set up GPIO lines for N900 modem and other N900 setup items +# Authors: Kai Vehmanen, Marko Saukko, Kalle Jokiniemi. + +function setup_gpio +{ + # set up the GPIO's for N900 modem: + echo 70 >/sys/class/gpio/export + echo low >/sys/class/gpio/gpio70/direction + echo 0 >/sys/class/gpio/gpio70/value + echo 73 >/sys/class/gpio/export + echo high >/sys/class/gpio/gpio73/direction + echo 0 >/sys/class/gpio/gpio73/value + echo 74 >/sys/class/gpio/export + echo low >/sys/class/gpio/gpio74/direction + echo 75 >/sys/class/gpio/export + echo low >/sys/class/gpio/gpio75/direction + echo 157 >/sys/class/gpio/export + echo low >/sys/class/gpio/gpio157/direction + echo 0 >/sys/class/gpio/gpio157/value + # create symlinks for ofono N900 plugin + mkdir -p /dev/cmt + ln -nsf /sys/class/gpio/gpio70 /dev/cmt/cmt_apeslpx + ln -nsf /sys/class/gpio/gpio74 /dev/cmt/cmt_en + ln -nsf /sys/class/gpio/gpio73 /dev/cmt/cmt_rst_rq + ln -nsf /sys/class/gpio/gpio75 /dev/cmt/cmt_rst + ln -nsf /sys/class/gpio/gpio157 /dev/cmt/cmt_bsi +} + +function setup_keymap +{ + /bin/loadkeys /lib/kbd/keymaps/arm/qwerty/nokia-n900.map +} + +function setup_pm +{ + if [ $1 -ne 0 ]; then + UART_SLEEP=15 + else + UART_SLEEP=0 + fi + + echo $UART_SLEEP > /sys/class/tty/ttyO0/device/sleep_timeout + echo $UART_SLEEP > /sys/class/tty/ttyO1/device/sleep_timeout + echo $UART_SLEEP > /sys/class/tty/ttyO2/device/sleep_timeout + + echo $1 > /sys/kernel/debug/pm_debug/sleep_while_idle +} + + +case "$1" in + start) + echo "Setting up GPIO lines for N900 modem" + setup_gpio + echo "Setting up PM" + setup_pm 1 + echo "Setting up keymap" + setup_keymap || echo ".. failed" + ;; + stop) + echo "Stopping PM" + setup_pm 0 + ;; + *) + echo "Usage: $0 {start|stop}" + exit 1 +esac + +exit 0 Index: nokia-n900-configs.service =================================================================== --- nokia-n900-configs.service (revision 0) +++ nokia-n900-configs.service (revision 3) @@ -0,0 +1,11 @@ +[Unit] +Description=Nokia N900 Configs + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/sbin/nokia-n900-configs.sh start +ExecStop=/usr/sbin/nokia-n900-configs.sh stop + +[Install] +WantedBy=multi-user.target
