在linux環境下,編寫shell指令碼,命名為:「mouse_wheel.sh」開啟後貼上以下內容到裡面,儲存推出(ps,最好另外儲存到別的地方)
#!/bin/bash
# for thinkpad trackpoint, middle key scroll screen
xinput set-prop 'tpps/2 ibm trackpoint' "evdev wheel emulation" 1
xinput set-prop 'tpps/2 ibm trackpoint' "evdev wheel emulation button" 2
xinput set-prop 'tpps/2 ibm trackpoint' "evdev wheel emulation timeout" 200
xinput set-prop 'tpps/2 ibm trackpoint' "evdev wheel emulation axes" 6 7 4 5
之後設定開機載入此指令碼即可
取消Linux下的滑鼠中鍵貼上功能
quote section inputdevice option emulatewheel true option emulatewheelbutton 2 option emulatewheeltimeout 1 endsection 實際上也就是把timeout時間設成了1ms,如果你能在1ms...
在linux下使用am335x的DMA
這幾天在弄am3358的dma,簡化應用環境如下 am3358的fsmc接了一片fpga fpga上接adc am3358通過fpga以dma方式讀取adc資料。事先在網上查詢過相關資料,發現關於這方面工作的文章極少,即使ti官網上也沒什麼可靠資料,心裡還是有些忐忑的,結果在實現過程中發現意外的簡單...
在linux下原始碼編譯x265
將原始碼放入linux目錄下,注意,若是虛擬機器的話要放到linux系統的真實目錄下,而不是windows的共享資料夾,否則會有很多問題。libx265是用cmake編譯的,故先下cmake,我是centos系統,命令 yum install cmake y 進入目錄.x265 1.9 build ...