简体   繁体   English

C#获取/设置BIOS设置?

[英]C# Getting/Setting BIOS Settings?

I work with a Dell XPS M1710. 我使用的是戴尔XPS M1710。 The laptop has lights in the lid, the side speakers, and the front speakers (3 sets of lights that can be individually adjusted) and a light under the mousepad. 笔记本电脑的盖子上有灯,侧面扬声器和前置扬声器(可以单独调节的3组灯)和鼠标垫下的灯。 In the BIOS I can change the color of these lights, at least, each group. 在BIOS中,我可以改变这些灯的颜色,至少每组。 Also, I can turn a light on/off under the mousepad, I can't change it's color, just alternate if it's lit. 此外,我可以在鼠标垫下打开/关闭灯光,我无法改变它的颜色,只要它点亮就可以交替。 The laptop came with a lot of software from Dell, but I've installed Windows 7 and lost all of their apps, including one that allowed me to change these light colors. 笔记本电脑附带了很多来自戴尔的软件,但我安装了Windows 7并丢失了所有应用程序,包括允许我更改这些浅色的应用程序。 Now that Dell's app is gone, I'm interested in making my own C# application to change the color of these 3 sets of lights (I don't particularly care to change the light under the mousepad, I like it off). 现在戴尔的应用程序已经不见了,我有兴趣制作我自己的C#应用​​程序来改变这三组灯的颜色(我不特别注意改变鼠标垫下的灯光,我喜欢它)。 How would I go about developing an app to retrieve and change these BIOS settings? 我如何开发应用程序来检索和更改这些BIOS设置?

We released an SDK for the community: 我们为社区发布了一个SDK:

http://www.dell.com/html/global/xps/lightfx/index.html http://www.dell.com/html/global/xps/lightfx/index.html

(I can say "we" because I worked on it!!) (我可以说“我们”因为我的工作!!)

  • Offers an extensive library of functions for building custom effects using the XPS M1710 LED lights. 提供丰富的功能库,可使用XPS M1710 LED灯构建自定义效果。

  • Allows you to build custom effects just by creating a text file with a few simple XML tags -- even if you are not an XML programmer. 只需创建带有一些简单XML标记的文本文件即可构建自定义效果 - 即使您不是XML程序员也是如此。

  • Includes application programming interface (API) functions that allow you to program lighting effects directly into applications. 包括应用程序编程接口(API)功能,允许您将照明效果直接编程到应用程序中。

  • Highlights several sample effects to inspire you to new heights of creativity. 突出几个样本效果,激发您创造新的高度。

From what I've been able to find, this hackery is done in SMBIOS. 从我能够找到的,这个hackery在SMBIOS中完成。

Looks like this developer figured it out -- he's written a Python GUI on Linux. 看起来这个开发人员想出来了 - 他在Linux上编写了一个Python GUI。

I read the source, and he's hooking to dellLEDCtl in libsmbios to do the dirty work. 我读了源代码,他正在和libsmbios中的dellLEDCtl挂钩来做脏工作。 Here's the source, if you can stomach it. 这是源头,如果你能忍受它。 The git repo that Dell provided to the community for this stuff is here . 戴尔为这些东西提供给社区的git repo 就在这里

I don't think you're going to get this done completely managed. 我不认为你会完全管理完成这件事。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM