November 2006 Archives

Ubuntu下使用Framebuffer

| No Comments | No TrackBacks

Ubuntu比较怪,用自己编译的kernel直接向kernel传递vga=791开启1024×768的framebuffer不起作用。在EASYSOU.CN搜索了一段时间后终于搞定。简述一下ubuntu下开启framebuffer的步骤。

  • 在kernel中编入VESA Support & Framebuffer Console Support。这两个选项分别在Device Driver->Graphics Support 和 Device Driver->Graphics Support->Console Display Driver Support. 编入kernel也可以,编成module也可以(如果是module最好有initrd,不然开机会有很长一段时间的黑屏)
    • 如果是编译成为modules, 需要在/etc/modules加入fbcon。
    • 如果使用了initrd,需要在/etc/initramfs-tools/modules加入fbcon,然后再执行update-initramfs -k `uname-r` -u 更新initrd
  • 编辑/boot/grub/menu.lst 在kernel后加入video=vesafb:1024×768-16@50 vga=0x317. 这个1024×768貌似没用,但是听说不加会失败. vga后的数值,听说必须是16进制的。关于vesafb的使用可以参考kernel source里的Documentation/fb/vesafb.txt
  • reboot your system & enjoy
有了framebuffer之后,就可以在console下运行mplayer -vo fbdev了。在console下看电影真的是very cool阿~~。

FreeBSD上使用DELETE键的方法

| No Comments | No TrackBacks

在home下建立.inputrc文件,内容是:

"\e[1~": beginning-of-line
"\e[2~": overwrite-mode
"\e[3~": delete-char
"\e[4~": end-of-line

relogin,然后就可以使用DELETE HOME END INSERT这些按键了

October 2008

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Friends' Links

Recent Comments

  • jianingy: test read more
  • mmx: thank u very much ! read more
  • FW: pls contact me with email.about APIHook. read more
  • jianingy: 这个lc是啥意思? -------- read more
  • cnhackTNT: 晕,被过滤掉了,再试试: s/(?<!\\)\$NICK/lc/e; 汗,过滤了小于符号,只好写<了呵呵 read more
  • cnhackTNT: s/(? 这样可以少打几个字呵呵 read more
  • R.Q.: 酱紫哦,了了 -------- read more

Archives

Powered by Movable Type 4.21-en