免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1231 | 回复: 0
打印 上一主题 下一主题

Something about Laptop/Desktop FreeBSD [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-01-08 12:02 |只看该作者 |倒序浏览

               
               
               
               
               
                自从上个月把笔记本从FreeBSD5.4升到6.0stable,这一个月的也算是搞定了一些笔记本或是桌面应用的问题。记录于此。
freebsd 6.0-stable
xorg 6.8.2 (xorg-server-6.8.99.903)
* PENTIUM-M SPEEDSTEP
I didnot make it until last month, which was nearly half a year since I started to use freebsd for my laptop desktop. They say in FreeBSD5, there are est/estctrl ports. I havent tried that when I was in 5.4 version, however. Now I am using FreeBSD6. est/estctrl were broken, but finally I got from the net the way to make use of SpeedStep of my PentiumM.
Simply add this to loader.conf:
    cpufreq_load="YES"
(Here one may aslo compile "device cpufreq" into the channel. I did not try it)
and add this to rc.conf:
    powerd_enable="YES"
    powerd_flags="-a maximum -b adaptive -n adaptive"
here -a stands for "AC", -b for "batt", -n for "unknow". And "adaptive" means the freq could be adjusted on the fly. This is a new feature of powerd, in FreeBSD5 only two freq steps can be manually set.
Now the battery can hold for over 30% longer than before.
* MULTIMEDIA KEYS
Some window managers (eg. gnome) enable one to config the multimedia keys on laptop keyboard. However, my WindowMaker does not provide that feature. I found xbindkeys (/usr/ports/x11) can do me the favor.
This is the format of ~/.xbindkeysrc enties
    "command to start"
        associated key
So I added the following lines to my ~/.xbindkeysrc
    "mixer vol +10"
        m:0x0 + c:176
    "mixer vol -10"
        m:0x0 + c:174
    "mixermute.sh"
      m:0x0 + c:160
Here "m:0x0 + c:176" is the key code, which can be obtained with
    xbindkeys -mk
And mixermute.sh is a script by myself
    #!/bin/sh
    if [ -e ~/.mixermute ]; then        mixer vol `cat ~/.mixermute`        rm ~/.mixermute    else        mixer vol | sed -n "s/.*://p" > ~/.mixermute        mixer vol mute    fiNote that xbindkeys seemed to conflict with xmodmap in some cases. When both are used in .xprofile (or .xsession), sometimes wmaker may not start, sometimes it starts but keyboard disabled.  
* MOUSE WHEEL
I amm not sure when it started not to work. When I was in FreeBSD5 1 month ago, I configed that wheel scrolling and it worked well. I think either FreeBSD6 or present xorg-server-snap (6.8.99.903) makes the difference. I checked with xev and found that the scrolling buttons became 8 and 9 (actually they should have been 4 and 5) !! And xmodmap -pp show that there have 11 mouse buttons!
I am totally in the air about how these could happen. At present I employ
    xmodmap -e "pointer = 1 2 3 8 9 6 7 4 5 10 11"
to remap them to my xorg.conf settings.
strange...
* FLASH SUPPORT ON FIREFOX
I first tried port flashplugin-mozilla. That one may crash on some web pages, eg. chinaunix.
Then I installed linuxpluginwrapper and linux-flashplugin6, and copied that libmap.conf. Flash didnot show in "about:plugins" until I saw on a forum that one should link plugins .so files to the path at
/usr/X11R6/lib/browser_plugins/
Therefore I linked /usr/X11R6/lib/linux-flashplugin6/libflashplayer.so to that path. It works.
另外,关于目前freebsd6对于i915gm显卡的支持,虽然最新的cvs上已经有i915 的drm,xorg-server-snap(6.8.99)的i810驱动也据说可以支持i915gm了,但是我试下来还是有问题。现在虽然能用i810替代vesa(这样可以使用1024x768以上的分辨率了),但是drm没有办法装载,到网上看老外的大讨论,似乎是现有的drm只支持agp而不支持pci的问题。然后我找了一个hack的patch,可以强行识别为agp,结果从xorg的log看,drm似乎是成功装载了,但是从glxinfo的输出却显示"direct rendering: no",也就是说没有3d加速。现在网上有少数人已经弄出来了,据说和xorg-server的版本(打补丁的6.8.2;6.8.99中也不是每个版本都能行的)以及dri的版本(dri / dri-devel)都有关系,但是也有人试过所有的组合而依然不行的。看来这个东西还是不成熟,只好再等等了。想在freebsd上玩quake还这么累...真是的
               
               
               
               
               
               
               
               
               
               
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/8091/showart_66143.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP