首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >内置摄像头未检测到联想P14 AMD

内置摄像头未检测到联想P14 AMD
EN

Unix & Linux用户
提问于 2022-09-20 22:02:49
回答 1查看 107关注 0票数 1

我正在使用Garuda与Qtile管理器在联想P14 AMD笔记本电脑上,无法使内置摄像头功能。我试过奶酪和各种网站(Jitsi,Google等),它总是出现“没有设备发现”。

我没有video*文件位于/dev/

Linux版本:Linux linux 5.19.9-zen1-1-zen

运行lsusb

代码语言:javascript
运行
复制
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 0489:e0cd Foxconn / Hon Hai Wireless_Device
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

一些系统信息:

代码语言:javascript
运行
复制
Graphics:
  Device-1: AMD Cezanne vendor: Lenovo driver: amdgpu v: kernel arch: GCN-5.1
    code: Vega-2 process: TSMC n7 (7nm) built: 2018-21 pcie: gen: 3
    speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s ports:
    active: HDMI-A-1,eDP-1 empty: DP-1,DP-2 bus-ID: 07:00.0
    chip-ID: 1002:1638 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.4 compositor: Picom v: git-c4107
    driver: X: loaded: amdgpu unloaded: modesetting alternate: fbdev,vesa
    gpu: amdgpu display-ID: :0 screens: 1
  Message: Unable to show GL data. Required tool glxinfo missing.

我不知道我能采取什么步骤来解决这个问题。

EN

回答 1

Unix & Linux用户

发布于 2023-02-28 05:20:40

https://github.com/djrscally/miix-510-cameras在这里给出了一个书面答复,说明Miix510联想运行Linux所需的代价。

哦!它们有用吗?

说大也大吧。在加载了surface_camera驱动程序和ov2680驱动程序之后,您可以获取(非常糟糕的)图像。ov5648驱动程序还没有工作。在这些驱动程序上还有很多工作要做,随后还需要做很多与lib摄像机有关的工作,以使它们以一种有用的方式工作。为什么这么难?

有几个问题:

代码语言:javascript
运行
复制
The cameras are powered off by default behind a PMIC called a TPS68470, identified as INT3472 in the ACPI tables. The ACPI tables don't define an I2cSerialBus2 section for the PMIC, so its driver never realises that it's present.
The TPS68470 driver doesn't actually turn it on; there are 3 GPIO lines into the PMIC defined in the ACPI tables, but they're off by default and the PMIC driver doesn't toggle them. They're also not named in the ACPI tables so it's not a simple matter to determine which ones are the power lines and which the reset pin. In my case, 1 and 2 were power and 0 was reset, so the chip can be turned on like so:

$ sudo gpioset gpiochip0 122=1 143=1

在此之前,PMIC和摄像头的i2c接口甚至都没有启用,这意味着它们根本不显示任何地方。一旦设备打开,您就可以使用i2cdetect看到它:

OV2680在0x10。TPS68470是0x48的设备。我不知道0x0c是什么;这是为oc5648定义的两个可能的地址之一,但是驱动芯片的PMIC显示它在0x36。管他呢真的。不管怎么说,现在相机打开了,你可以通过和传感器交谈并询问它的id来验证这不是胡说八道。OV2680数据表告诉我们它的id位于寄存器0x300a:

$ sudo i2cdetect -r -y 7

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/718025

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档