kajgan / fbterm

Automatically exported from code.google.com/p/fbterm
0 stars 0 forks source link

[bug] if launch fbterm from non-current virtual console,the display get mess. #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If launch fbterm from current virtual console, everything is fine.

If launch fbterm from non-current virtual console,the display get mess.
1. Login into the virtual console /dev/tty5.
2. Run "sleep 3; fbterm -i fbterm_ucimf".
3. Press ALT+F2, switch to the virtual console /dev/tty2.
4. Wait a second, and the display get mess.
5. Press ALT+F5 and ALT+F2, and the display back to normal.

I try to run fbterm using /sbin/init, and find this bug.
0. Patch fbterm. (issuse 15 fbterm-1.4_run_command.patch
)
1. Change one line from /etc/inittab
"5:2345:respawn:/sbin/agetty -I '\033(K' tty5 38400"
to
"5:2345:respawn:/sbin/agetty -I '\033(K' tty5 38400 -n -l /bin/login.sh".
2. Create the file /bin/login.sh
cat > /bin/login.sh << eof
#!/bin/sh
export LANG=zh_CN.UTF-8
export LC_ALL=zh_CN.UTF-8
exec /usr/bin/fbterm -i /usr/bin/fbterm_ucimf /bin/login
eof
chmod 700 /bin/login.sh 
3. Run "init q".
4. Press ALT+F2.
5. Wait a while, and the display get mess.
6. Press ALT+F5 and ALT+F2, and the display back to normal.
After that, we can find a config file /.fbtermrc. It will be nice using a
system level config file /etc/fbterm.conf.

http://groups.google.com/group/ucimf/browse_thread/thread/baa5fd4dffdcb27d

Original issue reported on code.google.com by ericzhao...@gmail.com on 8 Apr 2009 at 2:57

GoogleCodeExporter commented 9 years ago
This patch should fix issuse 16.

Fix the file path "/.fbtermrc" to "/root/.fbtermrc" :
Add "export HOME=/root" to /bin/login.sh.
cat > /bin/login.sh << eof
#!/bin/sh
export LANG=zh_CN.UTF-8
export LC_ALL=zh_CN.UTF-8
export HOME=/root
exec /usr/bin/fbterm -i /usr/bin/fbterm_ucimf /bin/login
eof

Original comment by ericzhao...@gmail.com on 9 Apr 2009 at 2:09

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks again for your patch!

These bugs will be fixed in version 1.5

Original comment by zgchan...@gmail.com on 11 Apr 2009 at 2:39

GoogleCodeExporter commented 9 years ago
please verify it with version 1.5

Original comment by zgchan...@gmail.com on 26 Apr 2009 at 2:33

GoogleCodeExporter commented 9 years ago
It's fine running "sleep 3; fbterm".

But I get a segfault, same as Issue 15 Comment 4.
1. run "sleep 3; fbterm -i fbterm_ucimf". OK
2. Press Ctrl_Space. OK
3. Press any key, fbterm_ucimf exit with a segfault.

Original comment by ericzhao...@gmail.com on 28 Apr 2009 at 4:25

GoogleCodeExporter commented 9 years ago
It's fine with fbterm_ucimf-0.2.5.
Thanks!

Original comment by ericzhao...@gmail.com on 28 Apr 2009 at 5:50

GoogleCodeExporter commented 9 years ago

Original comment by zgchan...@gmail.com on 4 May 2009 at 3:59