控制音量的 Fn 键可以用了。

在安装 alsa-utils 软件包后,可以在终端输入 alsamixer 命令启动 alsa 混音器,利用上下键调整音量。


界面如下:

──────────────────── AlsaMixer v1.1.3 ──────
│ Card: PulseAudio F1:  Help               │
│ Chip: PulseAudio F2:  System information │
│ View: F3:[Playback] F4: Capture F5: All F6: Select sound card │
│ Item: Master Esc: Exit

 ┌──┐                                                        │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
│ │▒▒│                                                        │
│ │▒▒│                                                        │
│ │▒▒│                                                        │
│ │▒▒│                                                        │
│ │▒▒│                                                        │
│ │▒▒│                                                        │
│ │▒▒│                                                        │
│ │▒▒│                                                        │
│ │▒▒│                                                        │
│ │▒▒│                                                        │
│ ├──┤                                                        │
│ │OO│                                                        │
│ └──┘                                                        │
│ 60<>60                                                       │
│                                                    < Master >


接下来再安装 kmix,KDE 的音量调节器,可以在右上角喇叭图标调节音量。

安装完 alsa-utils ,kmix 两个软件包后,相关的音量调节 Fn 键就可以用了,并能够出现 OSD 图标。

Fn + F1 :关闭声音
Fn + F2 :调小声音
Fn + F3 :调大声音


atzlinux

在 2017年04月07日 09:25, yangdawei.hit 写道:
贴心,^_^

发自 Smartisan M1

nsynet <[email protected]> 于 2017年4月7日 上午9:18写道:

    笔记本装linux总是有各种不兼容的问题,看到好像只有一个网站
    http://www.linux-on-laptops.com/ ,但是都是几年前的过时的信息。

    ------------------




    Yours sincerely!

    倪升跃(novia ni)




    ------------------ Original ------------------
    *From: * "atzlinux";<[email protected]>;
    *Date: * Thu, Apr 6, 2017 07:08 PM
    *To: * "debian-chinese-gb"<[email protected]>;
    *Subject: * 小米笔记本 debian 安装

    小米笔记本 debian 安装记录

    最近入手一本小米笔记本,把默认安装的 windows10 格式化重装为
    debian,安装过程走了一些弯路,折腾一两天,遇到的主要问题是:无线网卡驱动、触摸板双击无法实现左键功能、输入法无前端面板显示。

    现把我摸索后,成功安装的步骤记录如下:

    1:下载最新 testing 版本 iso

    debian-testing-amd64-xfce-CD-1.iso

    该 iso 文件在 apt 源文件里面的记录条目如下:

    deb cdrom:[Debian GNU/Linux testing _Stretch_ - Official Snapshot
    amd64 xfce-CD Binary-1 20170403-05:20]/ stretch main

    目前 debian 的 testing 源,还没有生成其它 iso 文件,仅这个轻量级的
    xfce 图形 X windows。

    2。将该 iso 文件 dd 到一个 U 盘,将U盘插入后,重启笔记本。

    3。笔记本开机按 F2 进入 BIOS 配置,设置启动方式,不是
    EFI,使用古董方式,使用检测到的 U盘启动。

    4。使用 U
    盘启动,出现安装界面后,选择图形方式安装吧,虽然触摸板无法使用,但是还是可以使用键盘完成安装的。安装过程会提示无法加载
    无线网卡 的  firmware,先忽略。

    安装套件,那里选择全部安装。结尾将 grub 安装到硬盘。

    5。重启机器,系统已经是使用如下内核启动了:

    Linux debian 4.9.0-2-amd64 #1 SMP Debian 4.9.13-1 (2017-02-27)
    x86_64 GNU/Linux

    6。无线网卡安装

    lspci 可以看到无线网卡型号

    01:00.0 Network controller: Intel Corporation Wireless 8260 (rev 3a)

    该版本内核,其 intel
    无线网卡的驱动,已经是支持网卡硬件芯片了,但是缺少固件。

    从其他机器上下载固件文件,拷贝到 U 盘,再拷贝到笔记本上。

    下载方式:

    git clone
    git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git

    将 linux-firmware 目录,整个拷贝到 /lib/firmware 目录,重启机器。

    dmesg 能够看到如下信息:

    [    3.272234] iwlwifi 0000:01:00.0: firmware: failed to load
    iwlwifi-8000C-26.ucode (-2)
    [    3.272331] iwlwifi 0000:01:00.0: Direct firmware load for
    iwlwifi-8000C-26.ucode failed with error -2
    [    3.272352] iwlwifi 0000:01:00.0: firmware: failed to load
    iwlwifi-8000C-25.ucode (-2)
    [    3.272466] iwlwifi 0000:01:00.0: Direct firmware load for
    iwlwifi-8000C-25.ucode failed with error -2
    [    3.272480] iwlwifi 0000:01:00.0: firmware: failed to load
    iwlwifi-8000C-24.ucode (-2)
    [    3.272607] iwlwifi 0000:01:00.0: Direct firmware load for
    iwlwifi-8000C-24.ucode failed with error -2
    [    3.272626] iwlwifi 0000:01:00.0: firmware: failed to load
    iwlwifi-8000C-23.ucode (-2)
    [    3.272733] iwlwifi 0000:01:00.0: Direct firmware load for
    iwlwifi-8000C-23.ucode failed with error -2
    [    3.313581] iwlwifi 0000:01:00.0: firmware: direct-loading
    firmware iwlwifi-8000C-22.ucode
    [    3.314750] iwlwifi 0000:01:00.0: loaded firmware version
    22.391740.0 op_mode iwlmvm
    [    3.358081] iwlwifi 0000:01:00.0: Detected Intel(R) Dual Band
    Wireless AC 8260, REV=0x208
    [    3.360175] iwlwifi 0000:01:00.0: L1 Enabled - LTR Enabled
    [    3.360821] iwlwifi 0000:01:00.0: L1 Enabled - LTR Enabled

    实际上是通过 iwlwifi-8000C-22.ucode 这个firmware
    文件,把无线网卡驱动起来的。

    iwconfig ifconfig 命令可以看到 wlp1s0  这个无线网卡设备了。

    接下来就可以通过右上角的网络管理图标,看到当前wifi
    情况。好像不能够直接连接看到的wifi,需要先创建新的
    wifi网络。wifi密码的连接信息,要在
    左上角系统菜单:所有应用程序--》设置--》网络连接 里面输入。


    7。默认安装后,触摸板可以实现右键单击,双指触摸滚动,但是无法实现触摸即单击,双指点击模拟左键的功能。

    原因是 freedesktop.org
    的输入模块,把小米的触摸板识别成了点击板类型的,是识别错误导致.

    apt-get install evemu-tools

    我已经配置好后的输入设备信息,查看触摸板信息如下:

    root@debian:/var/log/apt# evemu-describe
    Available devices:
    /dev/input/event0:    AT Translated Set 2 keyboard
    /dev/input/event1:    Power Button
    /dev/input/event2:    Lid Switch
    /dev/input/event3:    Power Button
    /dev/input/event4:    PC Speaker
    /dev/input/event5:    XiaoMi USB 2.0 Webcam
    /dev/input/event6:    Video Bus
    /dev/input/event7:    HDA Intel PCH Front Headphone
    /dev/input/event8:    HDA Intel PCH HDMI/DP,pcm=3
    /dev/input/event9:    HDA Intel PCH HDMI/DP,pcm=7
    /dev/input/event10:    HDA Intel PCH HDMI/DP,pcm=8
    /dev/input/event11:    SYNA3105:00 06CB:7EA5
    Select the device event number [0-11]: 11
    # EVEMU 1.2
    # Input device name: "SYNA3105:00 06CB:7EA5"
    # Input device ID: bus 0x18 vendor 0x6cb product 0x7ea5 version 0x100
    # Supported events:
    #   Event type 0 (EV_SYN)

    .............

    # Properties:
    #   Property  type 0 (INPUT_PROP_POINTER)
    N: SYNA3105:00 06CB:7EA5
    I: 0018 06cb 7ea5 0100

    先手工升级如下软件包:

    libinput10_1.6.3-1_amd64.deb
    libinput-bin_1.6.3-1_amd64.deb

    libinput 1.6.3 版本,可以在 testing 源里面找到,可以 apt-get 安装.

    |然后手工生成如下文件: /usr/share/X11/xorg.conf.d/50-touchpad.conf
    Section "InputClass" Identifier "libinput touchpad catchall"
    MatchIsTouchpad "on" MatchDevicePath "/dev/input/event*" Driver
    "libinput" Option "Tapping" "on" Option "ClickMethod"
    "clickfinger" EndSection|

    重启机器,这下就可以使用触摸板了,其中还有三指同时触摸,就相当与鼠标中建,实现linux的粘贴功能哦!

    触摸板的安装,受益于这个帖子,赞一下!

    
https://www.reddit.com/r/archlinux/comments/5hpv0h/touchpad_supports_twofinger_tap_but_not_click/

    8.中文输入法 fcitx

    可能是 testing 的 xfce
    不完善,登录进入图像界面后,中文输入,无法看到候选字框.

    后来多安装几个 fcitx 的前端包搞定.我的 fcitx 软件包列表如下:

    dpkg -l|grep fcitx
ii fcitx 1:4.2.8.5-2 all Flexible Input Method Framework ii fcitx-bin 1:4.2.8.5-2 amd64 Flexible Input Method Framework - essential binaries ii fcitx-config-common 0.4.7-2 all graphic Fcitx configuration tool - common files ii fcitx-config-gtk 0.4.7-2 amd64 graphic Fcitx configuration tool - Gtk 3 version ii fcitx-data 1:4.2.8.5-2 all Flexible Input Method Framework - essential data files ii fcitx-frontend-all 1:4.2.8.5-2 all Flexible Input Method Framework - frontends metapackage ii fcitx-frontend-gtk2:amd64 1:4.2.8.5-2 amd64 Flexible Input Method Framework - GTK 2 IM Module
    frontend
ii fcitx-frontend-gtk3:amd64 1:4.2.8.5-2 amd64 Flexible Input Method Framework - GTK 3 IM Module
    frontend
ii fcitx-frontend-qt4:amd64 1:4.2.8.5-2 amd64 Flexible Input Method Framework - Qt4 IM Module frontend ii fcitx-googlepinyin 0.1.6-1 amd64 Fcitx wrapper for Google Pinyin IM engine ii fcitx-libs:amd64 1:4.2.8.5-2 amd64 Flexible Input Method Framework - library files ii fcitx-libs-gclient:amd64 1:4.2.8.5-2 amd64 Flexible Input Method Framework - D-Bus client
    library for Glib
ii fcitx-libs-qt:amd64 1:4.2.8.5-2 amd64 Flexible Input Method Framework - D-Bus client
    library for Qt
ii fcitx-m17n 0.2.3-1 amd64 Free Chinese Input Toy of X - m17n module ii fcitx-module-dbus 1:4.2.8.5-2 amd64 Flexible Input Method Framework - D-Bus module and
    IPC frontend
ii fcitx-module-x11 1:4.2.8.5-2 amd64 Flexible Input Method Framework - X11 module and XIM
    frontend
ii fcitx-modules 1:4.2.8.5-2 amd64 Flexible Input Method Framework - core modules ii fcitx-sunpinyin 0.4.1-1 amd64 fcitx wrapper for Sunpinyin IM engine ii fcitx-table 1:4.2.8.5-2 amd64 Flexible Input Method Framework - table engine ii fcitx-ui-classic 1:4.2.8.5-2 amd64 Flexible Input Method Framework - Classic user interface

    大家如果输入法有问题,就对照着安装软件包吧.

    9.蓝牙

    经过以上步骤,蓝牙已经有了驱动.之前拷贝的 /lib/firmware/
    目录里面已经有了蓝牙的固件.

    bluetoothctl 命令可以看到周边蓝牙设备,并可以配对.只是 iphone
    的蓝牙设备,可以发现,配对,但是还不能够作为个人热点网卡上网使用,在
    windows 10 下,是可以的,这个有待后续研究.

    10. 摄像头

    这个暂时还没有尝试,usb 的 摄像头驱动,linux 下也比较难安装.

    11.声音 OK

    12.ipheth 模块异常

    iphone 手机,通过 usb 数据线连接后,无法自动加载 ipheth 模块,手工
    modprobe 加载,也无法生成网卡设备,无法采取这种形式上网.在 windows 10
    下,也是可以的.

    13.Fn 键

    只有 Fn F4,Fn F5,调节屏幕亮度的,可以在屏幕右上角看到 OSD 屏幕图标,其它
    Fn 还键不行.


    写了不少,今天先写到这里吧,希望这些内容对大家以后在
    小米笔记本电脑上安装 debian 有帮助.

    欢迎大家继续讨论驱动遗留问题.


    atzlinux






回复