Linux 内核 5.18 版本正式发布，新增显卡驱动以及硬件支持
Linux 内核 Linux

> 
> 最新的 Linux 内核 5.18 版本现已如期发布，本次更新包括针对新硬件的支持以及许多其他核心变化。
> 
> 
> 


![Linux kernel 5.18 release](/data/attachment/album/202205/27/102212paqcgpviihhzpipc.png)


[Linux 5.17 内核](https://news.itsfoss.com/linux-kernel-5-17-release/) 发布时包含了对下一代硬件的支持，同时增强了 Steam Deck 的游戏体验。


每一代内核都包含了令人兴奋的技术进步，Linux 内核 5.18 也不例外。


### Linux 内核 5.18 有哪些变化呢？


本次我们可以看到，内核针对雷蛇外设硬件、苹果妙控键盘和 AMD 显卡增强了支持，还有一些网络、核心和安全方面的更新。


#### 新的雷蛇驱动


说到游戏装备，Linux 的硬件支持亟待更新。


目前存在一些开源驱动程序的变通解决方案。但是这些方案不具有普适性，适配和支持较少。


正如 [Phoronix](https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.18-HID) 所发现的，Linux 内核 5.18 中一同发布了一个新的雷蛇 HID 驱动程序，它适配了雷蛇黑寡妇蜘蛛键盘，并修复了宏键此前存在的问题。


此外，这个驱动程序应该也有助于解决其他雷蛇硬件的问题。


#### AMD 显卡特性 FreeSync 模式被默认开启


![](/data/attachment/album/202205/27/102213izc1h9sjzjgzsjkc.jpg)


虽然对 FreeSync 视频的支持足够好，但这只是改善 FreeSync 显示器用户体验的一个临时解决方案。


现在在 Linux 内核 5.18 版本中这一显示模式已被默认启用，用户无需调整任何设置即可使用 FreeSync（[见更新日志](https://lists.freedesktop.org/archives/amd-gfx/2022-February/075262.html)）。


#### 显卡驱动更新


针对当前和未来的 AMD 显卡的驱动进行了改进。此外，支持英特尔 Arch 图形处理器和英特尔 Alder Lake N 的工作也取得了一些进展。


更高刷新率的 DisplayPort 也在这一个版本中得到支持。


#### 从 C89 标准升级到 C11 标准（GNU11）


![](/data/attachment/album/202205/27/102213iqhfkbn50riqr5kf.jpg)


在 Linux 内核中使用的是 C89 C 语言标准，在当前已经稍显老旧并且缺失了许多十分必要的新特性。


考虑到目前的编译器版本 GCC 5.1 的要求，从 Linux 内核 5.18 开始决定用 C11 标准来取代它。


#### 网络优化


Linux 内核 5.18 增加了对新的无线硬件的支持，这包括联发科 MT7916、MT7921U 和博通 BCM43454/6。


![](/data/attachment/album/202205/27/102213p6eymwygl6gbbeee.jpg)


针对移动设备的改进也包括对英特尔 M.2 WWAN 卡的支持。


Realtek W89 驱动现在支持 AP 模式、6GHz 频段并增加了硬件扫描功能。


在配置 IPv6 和其他各种协议方面，通过一系列的改进提升了性能。


你可以在 Linux 内核 5.18 中网络方面的变更提交中了解所有情况（包括对驱动 API、协议和一些核心功能的改进）。


#### USB 改进


Xen USB 驱动程序进行了改进，以抵御恶意主设备，USB DWC3 驱动程序也支持了更多的硬件类型。


其他改进详见 [更新日志](https://lore.kernel.org/lkml/Yj7vGtn8fILavjyL@kroah.com/)。


#### 增强对苹果键盘以及平板的支持


![](/data/attachment/album/202205/27/102213ytaxr9cq0hihhh1w.jpg)


当前版本针对苹果妙控键盘（包含第一代型号）的使用体验进行了优化。


改进了功能键映射、键盘背光事件，以及 2021 款的妙控键盘通过 USB 连接时报告电池水平的能力。


Linux 内核 5.18 改进了输入处理，在平板电脑上输入将变得更为容易。


硬件相关的改进详见 [更新日志](https://lore.kernel.org/lkml/nycvar.YFH.7.76.2203231015060.24795@cbobk.fhfr.pm/)。


#### ARM 架构芯片的支持（特斯拉 FSD，树莓派 Zero 2 W）


![](/data/attachment/album/202205/27/102214xbsygbqpbs2tgg72.jpg)


Linux 内核 5.18 现在支持特斯拉的全套自动驾驶 SoC。三星工程师将其贡献到了 Linux 内核上游。


其他芯片支持包括高通骁龙 625/632，以及三星 Exynos 850/7885。


你还会发现 Linux 内核 5.18 支持了树莓派 Zero 2 W，而同时去除了旧的硬件/主板的支持。详见 [更新日志](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=baaa68a9796ef2cadfe5caaf4c730412eda0f31c)。


你可以参考 [官方更新日志](https://lore.kernel.org/lkml/CAHk-=wjiqyoH6qntYvYTjR1F2L-pHtgX9esZMRS13iktCOJ1zA@mail.gmail.com/T/#u) 和 Linus Torvald 的官方公告获取更多信息。


### 如何安装 Linux 内核 5.18？


你可以在 [Linux Kernel Archives](https://www.kernel.org/) 网站上找到最新版本的内核。你可以下载 [Tarball](https://git.kernel.org/torvalds/t/linux-5.16.tar.gz) 以进行测试。你也可以参照我们的 [Linux 内核升级指南](https://itsfoss.com/upgrade-linux-kernel-ubuntu/) 获取帮助。


如果不想自己编译它，你可以稍等几周，等 Linux 发行版们把它推到仓库。




---


via: <https://news.itsfoss.com/linux-kernel-5-18-release/>


作者：[Ankush Das](https://news.itsfoss.com/author/ankush/) 选题：[lkxed](https://github.com/lkxed) 译者：[PeterPan0106](https://github.com/PeterPan0106) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![](/assets/images/pikapods-banner-v3.webp)


![](/assets/images/pikapods-banner-v3.webp)

[Linux Kernel 5.17](https://news.itsfoss.com/linux-kernel-5-17-release/) came loaded with support for next-gen hardware, including improvements for the Steam Deck.

Not to forget, every Linux Kernel release is technically exciting, and Linux Kernel 5.18 is no exception.

## Linux Kernel 5.18: What’s New?

This time around, we get to see improved support for Razer hardware, Apple Magic keyboard, AMD graphics, and numerous networking, core, and security changes.

Here, I shall mention the key highlights of the release.

### A New Razer Driver

When it comes to gaming gears, the hardware support in Linux needs serious upgrades.

Yes, there are useful workarounds with open-source drivers. But, that’s not always the solution for every user.

As spotted by [Phoronix](https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.18-HID&ref=news.itsfoss.com), a new Razer HID driver comes with Linux Kernel 5.18, which focuses on Razer BlackWidow keyboards fixing the macro key handling.

Furthermore, this driver should be useful to address issues with other Razer hardware.

### AMDGPU FreeSync Video Mode Enabled by Default

![](https://news.itsfoss.com/content/images/wordpress/2022/05/amd-linux-5-18-1024x576.jpg)

While the support for FreeSync video was good enough, it was a temporary solution to improve the user experience with FreeSync monitors.

Now, with Linux Kernel 5.18, the FreeSync video mode is enabled by default ([changelog](https://lists.freedesktop.org/archives/amd-gfx/2022-February/075262.html?ref=news.itsfoss.com)). You do not have to do anything from your side to enable it with supported monitors.

### Graphics Driver Updates

In addition to the improvements to the AMDGPU driver, you also get updates preparing for future hardware.

Not to forget, the work to support Intel Arch graphics processors and Intel Alder Lake N has made some progress as well.

There have been changes to support higher DisplayPort rates as well.

### Switch from C89 to C11 (GNU11)

![](https://news.itsfoss.com/content/images/wordpress/2022/05/c-linux-5-18-1024x576.jpg)

The C programming used for the Linux Kernel was limited to the old C89 standard, which lacked certain features for the current requirements.

So, C11 was decided to replace it considering the current compiler version requirement i.e. GCC 5.1 sounds perfectly fine with it.

### Networking Tweaks

Linux Kernel 5.18 adds support for new wireless hardware, including MediaTek MT7916, MT7921U, and Broadcom BCM43454/6.

![](https://news.itsfoss.com/content/images/wordpress/2022/05/networking-linux-5-18-1024x576.jpg)

When it comes to mobile solutions, support for Intel M.2 WWAN card has also been added.

The Realtek W89 driver now supports AP mode, 6 GHz band, and adds a hardware scan feature.

Several other improvements have been made to configure IPv6, and handle various protocols, including performance optimizations.

You can learn all about it (including improvements to driver API, protocols, and some core functionality) in the [commit for networking changes](https://lore.kernel.org/lkml/20220323180738.3978487-1-kuba@kernel.org/?ref=news.itsfoss.com#r) in Linux Kernel 5.18.

### USB Improvements

Xen USB driver is being hardened against malicious hosts, and the USB DWC3 driver received improvements to support more hardware types.

You can find various other refinements in the [commit log](https://lore.kernel.org/lkml/Yj7vGtn8fILavjyL@kroah.com/?ref=news.itsfoss.com).

### Enhanced Apple Keyboard and Tablet Support

![](https://news.itsfoss.com/content/images/wordpress/2022/05/apple-linux-5-18-1024x576.jpg)

Advancements were made to improve the experience with Apple Magic Keyboards, including the first-generation models.

Some of the fixes included correcting function-key mapping, keyboard backlight events, and the ability to report the battery level for the 2021 Magic Keyboard model when connected via USB.

Linux Kernel 5.18 improves input handling and makes things reliable when it comes to tablets.

You can find changes for new hardware, touchscreens, and other stuff in the related [commit](https://lore.kernel.org/lkml/nycvar.YFH.7.76.2203231015060.24795@cbobk.fhfr.pm/?ref=news.itsfoss.com).

### New ARM Chip Support (Tesla FSD, Raspberry Pi Zero 2 W)

![](https://news.itsfoss.com/content/images/wordpress/2022/05/arm-linux-5-18-1024x576.jpg)

Tesla’s full self-driving SoC is now supported with Linux Kernel 5.18. Samsung engineers made it possible to upstream into the Linux Kernel.

Other interesting chip additions include Qualcomm Snapdragon 625/632, and Samsung Exynos 850/7885.

You also find the support for Raspberry Pi Zero 2 W with Linux Kernel 5.18. In addition to the new entrants, old hardware/boards were removed as well. You can explore the [commit l](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=baaa68a9796ef2cadfe5caaf4c730412eda0f31c&ref=news.itsfoss.com)og to know more.

You can refer to the [official changelog](https://lore.kernel.org/lkml/CAHk-=wjiqyoH6qntYvYTjR1F2L-pHtgX9esZMRS13iktCOJ1zA@mail.gmail.com/T/?ref=news.itsfoss.com#u) and Linus Torvald’s announcement to explore more details.

## How to Install Linux Kernel 5.18?

If you are using Arch Linux or Fedora, you can easily upgrade shortly. But, if you are using other Linux distributions (Pop!_OS can be an exception to some extent), you may not receive an upgrade.

So, if you are feeling adventurous (and know what you are doing), you can find the newer kernel listed on [Linux Kernel Archives](https://www.kernel.org/?ref=news.itsfoss.com). You can download the [tarball](https://git.kernel.org/torvalds/t/linux-5.16.tar.gz?ref=news.itsfoss.com) to test it out.

However, we recommend waiting for your Linux distribution to push an update if you do not want to take any chances. It is best to stick to what’s being offered for your Linux distribution by default.

## More from It's FOSS...

- Support us by opting for
[It's FOSS Plus](https://itsfoss.com/#/portal/signup)membership. - Join our
[community forum](https://itsfoss.community/). - 📩 Stay updated with the latest on Linux and Open Source. Get our
[weekly Newsletter](https://itsfoss.com/newsletter/).