Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Zaurus 中文论坛 Forum Index » pdaXrom & debain & openBSD

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
在7500c上的ICEWM+powertrl问题
View previous topic :: View next topic  
Author Message
ninnd



Joined: 16 Nov 2007
Posts: 167

小企鹅: 5096

PostPosted: 2007-Dec-19 Wed, am11:24 Reply with quote
 Post subject: 在7500c上的ICEWM+powertrl问题

在CC的帮助我的ICEWM用上了powertrl
ICEWM和POWERTRL安装就不用说了,论坛里遍地都是,装好后要改xinitrc文件才能让powertrl出现在TOOLBAR上:
我的xinintrc文件
#!/bin/sh
test -e /proc/power_key_off && echo "0" >/proc/power_key_off 2>/dev/null
if [ -e /etc/profile ]; then
. /etc/profile
fi

test -e /etc/rc.d/init.d/switchev && /etc/rc.d/init.d/switchev restart

#DESKTOP=matchbox
DESKTOP=rox

if [ ! -d ~/.icewm ]; then
mkdir -p ~/.icewm
cp -a /usr/share/icewm/defconfig/* ~/.icewm
echo "gtk-font-name = \"Verdana 12\"" >~/.gtkrc-2.0
fi

#makeicemenu

if [ ! -d $HOME/Choices/common ]; then
mkdir -p $HOME/Choices/common
fi

if [ -f $HOME/Choices/lightnpower.cfg -a -e /usr/bin/lightnpower.py ]; then
lightnpower.py --loadandquit
fi

if [ -f /usr/bin/gconfd-2 ]; then
/usr/bin/gconfd-2 15 &
fi


MODEL=`cat /proc/deviceinfo/product`
echo 'MODEL:'$MODEL
case "$MODEL" in
SL-C860|SL-C760|SL-C750|SL-7500|SL-C700)
test -f /etc/X11/kb/corgi.xmodmap && xmodmap /etc/X11/kb/corgi.xmodmap
;;
SL-6000)
test -f /etc/X11/kb/tosa.xmodmap && xmodmap /etc/X11/kb/tosa.xmodmap
;;
SL-C1000|SL-C3000|SL-C3100)
test -f /etc/X11/kb/akita.xmodmap && xmodmap /etc/X11/kb/akita.xmodmap
;;
*)
cat /proc/cpuinfo | grep 'Sharp-Collie' 2>/dev/null >/dev/null && test -f /etc/X11/kb/collie.xmodmap && xmodmap /etc/X11/kb/collie.xmodmap
;;
esac

test -f /etc/X11/kb/userdefined.xmodmap && xmodmap /etc/X11/kb/userdefined.xmodmap
test -f /usr/bin/chkhinge && /usr/bin/chkhinge 2>/dev/null >/dev/null
case $DESKTOP in
rox)
ROX=`which rox`
test $ROX && $ROX --pinboard=mypin 2>/dev/null >/dev/null
;;
matchbox)
MATCHBOX=`which matchbox-desktop`
if [ ! "x$MATCHBOX" = "x" ]; then
if [ -f $HOME/.matchbox/mb-desktop-background ]; then
MBBGND=`cat $HOME/.matchbox/mb-desktop-background`
else
MBBGND=""
fi
eval "$MATCHBOX $MBBGND" 2>/dev/null >/dev/null &
fi
;;
*)
;;
esac

icewm 2>/dev/null >/dev/null & wmpid=$!
icewmtray & >/dev/null
mb-applet-powerctrl 2>/dev/null
wait $wmpid


GCONF2_PID=`pidof gconfd-2`
if [ ! "$GCONF2_PID" = "" ]; then
kill $GCONF2_PID
fi

test -e /proc/power_key_off && echo "1" >/proc/power_key_off 2>/dev/null
主要改蓝色的地方,不过有个问题,就是退出X的时候,退不出,非要把powertrl或icewmtray进程kill了,才行
Back to top
View user's profile Send private message
plum



Joined: 03 Jan 2007
Posts: 129
Location: 河南 郑州
小企鹅: 3482

PostPosted: 2007-Dec-19 Wed, am11:27 Reply with quote
 Post subject:

应该在退出的脚本里面再加上结束语句吧貌似

具体的我也不知道

_________________
http://www.imobile365.com
Zaurus C1k+4G CF+Cell CF wifi+2G SD
ubuntu 7.10
WIndows XP Which in the VBOX under the ubuntu
Back to top
View user's profile Send private message Visit poster's website AIM Address30332348 MSN Messenger
ccpaging



Joined: 07 Dec 2006
Posts: 757

小企鹅: 16604

PostPosted: 2007-Dec-19 Wed, am11:51 Reply with quote
 Post subject:

icewm 2>/dev/null >/dev/null & wmpid=$!
icewmtray & >/dev/null
mb-applet-powerctrl 2>/dev/null
wait $wmpid

这个不对,带&的是后台运行,也就是说script不会停在这里,如果全部是&,启动X时会看到屏幕闪一下就退出来了,所有的X程序都会显示找不到display之类的错误。
上面的script是把mb-applet-powerctrl作为主程序了,在icewm菜单里边选择退出,是退出icewm。当然无法退出X窗口啦。

楼主请改成:
icewm 2>/dev/null >/dev/null & wmpid=$!
icewmtray & >/dev/null
mb-applet-powerctrl 2>/dev/null &
wait $wmpid

试试

icewm里边的&可以保留,mb-applet-powerctrl的&一定要加上
wait $wmpid就是为了使script保持在X界面,否则全部是后台运行,直接就退出啦

_________________
SL-C1000, 1G CF, 1G SD
pdaxrom 1.1beta3
Roku Wifi Card(Used in Cacko 1.23 & pdaXrom 1.1 Beta3)
http://ccpaging.blog.ubuntu.org.cn/
http://ccpaging.osall.com/
http://blog.sina.com.cn/zaurus/
Back to top
View user's profile Send private message
ninnd



Joined: 16 Nov 2007
Posts: 167

小企鹅: 5096

PostPosted: 2007-Dec-19 Wed, pm12:02 Reply with quote
 Post subject:

老大们的速度就是快,按CC的方法已经O了
Back to top
View user's profile Send private message
plum



Joined: 03 Jan 2007
Posts: 129
Location: 河南 郑州
小企鹅: 3482

PostPosted: 2007-Dec-19 Wed, pm4:34 Reply with quote
 Post subject:

我想问下楼主是怎么替换Rox的文件夹图标的?
_________________
http://www.imobile365.com
Zaurus C1k+4G CF+Cell CF wifi+2G SD
ubuntu 7.10
WIndows XP Which in the VBOX under the ubuntu
Back to top
View user's profile Send private message Visit poster's website AIM Address30332348 MSN Messenger
ninnd



Joined: 16 Nov 2007
Posts: 167

小企鹅: 5096

PostPosted: 2007-Dec-19 Wed, pm4:48 Reply with quote
 Post subject:

ROX的所有图标都在~/.icons/ROS/MIME里
_________________
7500C,1G SD ,1G CF,pdaXrom 1.1 Beta1
QQ349963519
Back to top
View user's profile Send private message
plum



Joined: 03 Jan 2007
Posts: 129
Location: 河南 郑州
小企鹅: 3482

PostPosted: 2007-Dec-19 Wed, pm8:03 Reply with quote
 Post subject:

ninnd兄能否把你的mime文件夹打包发上来呢?或者过客的那个7500美化版的也行。
_________________
http://www.imobile365.com
Zaurus C1k+4G CF+Cell CF wifi+2G SD
ubuntu 7.10
WIndows XP Which in the VBOX under the ubuntu
Back to top
View user's profile Send private message Visit poster's website AIM Address30332348 MSN Messenger
ninnd



Joined: 16 Nov 2007
Posts: 167

小企鹅: 5096

PostPosted: 2007-Dec-19 Wed, pm8:36 Reply with quote
 Post subject:

没觉得过客的美化版美,我把MIME文件夹放到我的BLOG吧,要的话到那下载,其实也没什么改动,我就改了几个文件
_________________
7500C,1G SD ,1G CF,pdaXrom 1.1 Beta1
QQ349963519
Back to top
View user's profile Send private message
ninnd



Joined: 16 Nov 2007
Posts: 167

小企鹅: 5096

PostPosted: 2007-Dec-19 Wed, pm8:40 Reply with quote
 Post subject:

刚试了下,MIME文件拷不下来,SD是FAT格式不支持长文件名,自己看看把想要换的图标换一下就可以了
_________________
7500C,1G SD ,1G CF,pdaXrom 1.1 Beta1
QQ349963519
Back to top
View user's profile Send private message
plum



Joined: 03 Jan 2007
Posts: 129
Location: 河南 郑州
小企鹅: 3482

PostPosted: 2007-Dec-19 Wed, pm10:05 Reply with quote
 Post subject:

主要是我找到了很多图标,挨个对比替换有些麻烦,既然不能那我慢慢搞吧
_________________
http://www.imobile365.com
Zaurus C1k+4G CF+Cell CF wifi+2G SD
ubuntu 7.10
WIndows XP Which in the VBOX under the ubuntu
Back to top
View user's profile Send private message Visit poster's website AIM Address30332348 MSN Messenger
Display posts from previous:     
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Zaurus 中文论坛 Forum Index » pdaXrom & debain & openBSD All times are GMT + 8 Hours
Page 1 of 1

 
Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

[ 页面生成时间: 秒 ] :: [ 次查询 ] :: [ ]
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional