Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加 emmc 擦写量显示功能 #217

Open
1 task done
HoleHolo opened this issue Mar 24, 2024 · 0 comments
Open
1 task done

添加 emmc 擦写量显示功能 #217

HoleHolo opened this issue Mar 24, 2024 · 0 comments
Labels

Comments

@HoleHolo
Copy link

HoleHolo commented Mar 24, 2024

避免发送重复的功能请求

  • 我已查看所有打开的 Issues,确保这个功能没有被提出过

您遇到了什么问题?

经常擦写词典笔数据会导致内部 emmc 芯片老化,添加此功能可帮助用户获悉 emmc 老化情况、判断预期寿命

您认为还缺少什么?

通过读取 /sys/kernel/debug/mmc1/mmc1:0001/ext_csd,截获第 537 - 538 位数字 / 字母,再进行对应百分比的转换,显示在系统设置的存储或关于菜单中。检测可由开机自启或手动点击触发。
125453ou2k2cccd1mq6uml.png

就像下面这条命令一样

[root@YoudaoDictionaryPen-624:~]# cat /sys/kernel/debug/mmc1/mmc1\:0001/ext_csd | cut -c 537-538
01
@HoleHolo HoleHolo added the type: enhancement New feature or request label Mar 24, 2024
@HoleHolo HoleHolo reopened this Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants